gizmos apearing out of nowhere?!

I keep continuing to have this realy wierd problem where my custom gizmos just apear in the scene view :face_with_spiral_eyes:

step by step:
my completely normal scene:

these two custom gizmos pop up when I click their prefab, they don’t apear in the hierarchy:

selecting them selects their prefab in the project view:

the gizmos are assigned with the new unity 3.4 feature

they disapear when I restart unity

they should also have some extra gizmo lines that don’t show up here, I use this script for that:

var IsRight : boolean = false;
var brother : Transform;

function OnDrawGizmos () {
	Gizmos.color = Color.blue;
	
	if (IsRight) {
		Gizmos.DrawLine(transform.position, brother.position);
	}
}

function OnDrawGizmosSelected () {
	Gizmos.color = Color.green;
	
	Gizmos.DrawLine(transform.position, brother.position);
}

and no, they don’t give me ANY errors or show up in the game view, they only show up in the scene view

tl;dr: The gizmos to the objects I select in the project view apears in the scene before being added to the scene, the only way to delete them is to close unity

Yep, I have the same problem.

If I change the icon of a prefab, even without script or anything else (for exemple just a sphere on a prefab), if I select this prefab in the project view, his icon appear on the scene view until I restart Unity.

I think it’s a simple bogue.

glad to hear I’m not the only one:smile:

anyone have a solution?

This is a known bug and will be fixed for the next release.