Printing to the console
To print to the console we use the unity Debug
class as shown below.
When using the System namespace its Debug class might do some weird stuff.
You can use
UnityEngine.Debug.Log()
or simply add
using Debug = UnityEngine.Debug;
at the top of your class after the imports.
Last updated