A collection of useful C# scripts to increase productivity working with the Unity engine.
Automatic nav mesh baking NavMeshBaker.cs
Using a reference to a NavMeshSurface, this script will bake your NavMesh on start.
Go to click GoToClick.cs
Using a reference to a camera and an agent, handles agent movement towards the click position using a raycast.
Rotate game object Rotate.cs
Smoothly rotates any object.
Smooth position transition SlerpPosition.cs
Apply a smooth transition to the transform.
Smooth camera field of view change SmoothCameraFieldOfView.cs
Apply a smooth transition to a camera's field of view.