Unity 3D Raycast mouse shooting
Unity 3D Raycast mouse shooting Read More »
Create a Sprite object with BoxCollider2D (set isTrigger true) and Rigidbody2D. Create a new Script, name it PowerUp. Whenever other object that has Hp script on it (Rigidbody2D + Collider2D) will collide with PowerUp object,
Unity PowerUp pickup Read More »
HealthPlayer Script attached to the Player object. HealthPlayer derives from Hp class as it extends it and add more functionality. Health UI with image fill bar updated with Action event System
Windows >> UI Toolkit >> UI Builder Zapisz layoutDodaj nowy stylesheet, dodaj klasęStwórz elementy UI (Visual Element jako parent + dodatkowe elementy) W oknie Unity Hierarchy >> Create >> UI Toolkit >> UI DocumentW polu
Unity UI Builder / UIElements Read More »
Za pomocą PlayerPrefs można zapisywać informacje typu: int, float i string.Dane te zapisywane są w rejestrze systemu, w momencie zamknięcia aplikacji. Chcąc zapisywać dane do pliku częściej można użyć dedykowanej funkcji: PlayerPrefs.Save()
Unity Save system z PlayerPrefs Read More »