Scripts Flashcards
You can make script changes while playing by using Script changes while playing. Preferences, general, script changes while playing.
Select Recompile and Continue playing
True
You can delay destroying gameObjects by using
Destroy(gameObject, 1f);
True
A one Line call to pause the game at any point in the code
You need to import the UnityEditor by calling the UnityEditor at the top
Using UnityEditor;
Void Start()
{Editor Application.isPaused = true;}
Use this to pause on start
String interpolation is a thing in c#
With it you can add variables online into your strings
Debug.Log ($”My players name is {player.name} with {player.health}/{player.maxHealth} health points left.”) ;