I keep continuing to have this realy wierd problem where my custom gizmos just apear in the scene view ![]()
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


