you launched your game on a new, weaker platform (Android, iOS, or perhaps Switch). Or maybe this is your first launch, and you’ve only ever tested on a beefy PC. You find your game is laggy beyond what’s comfortable for people. What to do!?
Avoid using non-generic GetComponent Avoid empty Unity message Avoid using Time.fixedDeltaTime with Update Use CreateInstance to create a scriptable object The SerializeField attribute is redundant on public fields InitializeOnLoadMethod should tag only static and parameterless methods Prefer using SetPixels...
At the end of the day, what I need to do is make an FSM that iterates over an Array of game objects, that all have different physics materials on them, and gets the physics material properties from them (I can give more context if you want but this is already long so I will leave...