Unity By Example - Page 2

Object Pooling in Unity

Merging objects is a way to simplify your designs and reduce CPU usage when you need to quickly create and destroy new objects. Steps Create script ObjectPool.cs Create script Enemy.cs Add an object to the scene that will be an enemy. Create empty object and attach script ObjectPool.cs Result Download

How to Make a Character Move with Animation in Unity

Character controller with animations – walk, run, jump. Steps Create script FirstPersonCharacterController.cs Create script MoveCamera.cs Create script Key.cs Import character with rig in Unity. I will use a character and animation from https://www.mixamo.com/ Press on character, select rig tab. Avatar Definition select “Create This From Model” and press applay. Create Animator Controller and customize it ... Read More