UNITY GAME DEVELOPMENT Unity 2 D Advanced Unity
- Slides: 15
UNITY GAME DEVELOPMENT Unity 2 D & Advanced Unity features
CLASS OVERVIEW Class 14 Revision Unity 2 D Spritesheets 2 D Movement using Rigidbody 2 D Animating Sprites 2 D Triggers & Collisions 2 D Enemy AI Advanced: Extra Features Profiler Performance Optimization Unity Services Entity Component System (ECS)
REVISION UNet Mirror Multiplayer Cameras Network. Animator [Command] [Client. Rpc] Sync. Var
UNITY 2 D Unity 2 D = Intended for 2 D games, different features & functionality. Several components have a 2 D version such as: Rigidbody 2 D, Box. Collider 2 D, …
SPRITESHEETS A sprite sheet is a bitmap image file that contains several smaller graphics in a tiled grid arrangement. Allows applications to use the graphics while only needing to load a single file.
2 D MOVEMENT USING RIGIDBODY 2 D Character. Controller is not available in Unity 2 D, use Rigidbody 2 D instead. Calculating movement using input is similar, now using Vector 2
ANIMATING SPRITES Name Sprites using Spritesheet Editor Setup Animator Controller for Player Sprite Open Animation window and setup Sprites in order
2 D TRIGGERS & COLLISIONS Setup Box. Collider 2 D around character Mark as Trigger Activate during Attack using View Direction Deactivate after Attack
2 D ENEMY AI Nav. Mesh and Nav. Mesh. Agent are unavailable in Unity 2 D For pathfinding a custom implementation is required (A* pathfinding? ) Movement similar to player Determine Attack Direction & Move Rigidbody 2 D On impact change direction
ADVANCED: EXTRA FEATURES Add UI to displayer Health Implement Player. Death and Player. Victory conditions Implement Audio effects Setup Sprite Animations Add Level restart functionality Controller & Keyboard support
PROFILER Profiler allows you to monitor the performance of your Unity project. Including CPU Usage, Rendering (with Frame Debug) and Memory.
PERFORMANCE OPTIMIZATION Determine Performance issues using Profiler Use Static Batching when possible Reduce & Reuse Textures Use Culling to reduce Rendered Objects Optimize objects using LOD Compress all assets if possible (e. g. lower resolution, lower samplerate, …) Optimize Physics calculations using Layer. Masks Use simple colliders and don’t overuse Rigidbodies Cache data instead of re-calculating same results
UNITY SERVICES Use Unity Services to: Implement Ads Analyze data Build in the cloud Collaborate Setup in-app purchases Setup Multiplayer settings
ENTITY COMPONENT SYSTEM (ECS) ECS & Job System is a new way of programming massive performance gains
Q&A Do you have any questions related to the topics mentioned?
- Forum.unity.com/threads/game-over.54735
- Forum.unity.com/threads/game-over.54735
- Unity camera zoom mouse wheel
- Advanced software development
- Advanced development group
- Advanced topics in web development
- Pirate game theory
- The farming game rules
- A formal approach to game design and game research
- Game lab game theory
- Liar game game theory
- Liar game game theory
- Unity test driven development
- Level design process
- Game design stages
- Game development mini project