Skip to content

shadegames/unity-cookbook

Repository files navigation

Unity Scripts

A collection of useful C# scripts to increase productivity working with the Unity engine.

AI

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.

Movement

Rotate game object Rotate.cs

Smoothly rotates any object.

Transitions

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.

Smooth position transition using coroutines GoToCoroutine.cs

About

A collection of useful C# scripts to increase productivity working with the Unity engine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages