Hello. I have a simple script that reads like this: Code (csharp): using UnityEngine; using System.Collections; [ExecuteInEditMode()] public class CRailNode : MonoBehaviour { void OnDrawGizmos() { Gizmos.color = Color.yellow; Gizmos.DrawSphere(transform.position, 0.5f); } void OnDrawGizmosSelected() { Gizmos.color = Color.red; Gizmos.DrawSphere(transform.position, 0.5f); } } The problem with that is that the gizmos are NOT clickable. I can select them using the hierarchy window and then they have the expected behavior(they turn red) but I canot click on them. Any ideas? I'm running Unity 2.5 on Vista 64.
Drawing Gizmos don't create a clickable region. They don't add actual volume (if you could call it that) to your GameObject. If you want something which could be clickable, try GameObject->Create Other->Sphere. That'll give you something which you could click in Editor to select.
Thanks. So there is no solution right away so I think I need to create geometry I'll add this a feature requests: *Ability to create clickable gizmos *Ability to create gizmos that hide behind 3d geometry