Jera Docs

Documents, reminders and "cheat sheets" I use in everyday development

View the Project on GitHub jeradesign/jeradoc

Unity Cheat Sheet

Basics

Scene View

Hierarchy

Inspector

GameObject

MonoBehaviour

(Old) Input Manager

float xValue = Input.GetAxis("Horizontal")

(New) Input System

Keyboard

Keyboard.current.cKey.isPressed
Keyboard.current.cKey.wasPressedThisFrame

Physics

Cinemachine

Audio

if (!_audioSource.isPlaying) { _audioSource.Play() }

_audioSource.Stop()
_audioSource.PlayOneShot(_audioClip)

SceneManager

SceneManager.sceneCountInBuildSettings
SceneManager.LoadScene(sceneNumber)

Invoke

Invoke("MethodName", delayInSeconds);

Particle Effects

Assets & Colliders

Post-Processing

Lighting

Point, spot, directional

Quitting

Application.Quit()

Logging

Debug.Log("Message");

Terrain


VisionOS PolySpatial Setup

Unbounded Apps For unbounded apps that use ARKit features, add the com.unity.xr.arfoundation package to your project. To use skeletal hand tracking data, add the com.unity.xr.hands package to your project.