Scripts Flashcards

1
Q

You can make script changes while playing by using Script changes while playing. Preferences, general, script changes while playing.
Select Recompile and Continue playing

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

You can delay destroying gameObjects by using

Destroy(gameObject, 1f);

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

Using UnityEditor;
Void Start()
{Editor Application.isPaused = true;}
Use this to pause on start

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

String interpolation is a thing in c#

With it you can add variables online into your strings

A

Debug.Log ($”My players name is {player.name} with {player.health}/{player.maxHealth} health points left.”) ;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly