- Home /
how to display empty game object in the editor?
I use empty game objects as reference points, but I find it really hard to position them in the editor because they are invisible.
Is it possible to display empty objects in the editor similar to for example how maya displays locators?
Answer by Sinbad3D · Nov 25, 2016 at 07:56 AM
I prefer to use the Editor's own option for this, just click the icon dropdown in the Inspector and pick an icon to display (like a dot or diamond). https://unity3d.com/learn/tutorials/topics/tips/use-custom-icons-empty-game-objects-scene-views
Thank you, you absolute hero! Simple and built right in... two thumbs up sir.
Answer by bubblegumsoldier · May 04, 2011 at 02:46 PM
but you could also just move the camera around with the alt key then (well I) you can see the position better.
Answer by NatCou · Jul 05, 2019 at 10:31 AM
Came across this while looking for myself So here is my solution (drag and drop script onto game object empty)
using UnityEngine;
public class GizmoSphere : MonoBehaviour {
void OnDrawGizmosSelected() {
Gizmos.color = Color.yellow;
Gizmos.DrawWireSphere(transform.position, 2);
}
}