Keep in mind, I’m just using the 2D Gameplay Tutorial. When I open an unaltered version of the original project, without making changes, I get the same issue - none of the Gizmos appear on the screen, which makes setting up levels, etc. very tedious.
Here’s the OnDrawGizmos() function from the Spawn Point Game Object/Script:
// This script must be attached to a game object to tell Unity where the player starts in the level.
// We’ll draw a gizmo in the scene view, so it can be found…
function OnDrawGizmos() {
Gizmos.DrawIcon(transform.position, “Player Icon.tif”);
}
Here’s one from the Level Attributes Game Object/Script:
function OnDrawGizmos () {
Debug.Log (“In On DrawGizmos()”, gameObject);
Gizmos.color = sceneViewDisplayColor;
var lowerLeft = Vector3 (bounds.xMin, bounds.yMax, 0);
var upperLeft = Vector3 (bounds.xMin, bounds.yMin, 0);
var lowerRight = Vector3 (bounds.xMax, bounds.yMax, 0);
var upperRight = Vector3 (bounds.xMax, bounds.yMin, 0);
Gizmos.DrawLine (lowerLeft, upperLeft);
Gizmos.DrawLine (upperLeft, upperRight);
Gizmos.DrawLine (upperRight, lowerRight);
Gizmos.DrawLine (lowerRight, lowerLeft);
}
I just put that debug line in there. I’m not seeing any output in the console.
A couple of matters that might be complicating things. I’m using Windows 7 Pro on a 64-bit machine. My SP’s, etc. are all up to date.
Thanks,
Rob