Hi,
I have two simple issues related to scripts using C#:
1- I have a plane primitive and want to make it appear and disappear depending on some variable state. How do I do that?
2- I was trying to use the DrawLine function in the Update method of a script I am creating to draw a line between two points when runnign the EXE of my game, but the line never shows up. I am trying something just like the sample code in the reference manual:
Debug.DrawLine (Vector3.zero, new Vector3 (1, 0, 0), Color.red);
Should I be using adding this code somwhere else? Do I need to enable Debug mode somehow? Should I be using Handles.DrawLine or Gizmos.DrawLine instead?
Thank you all.