Draw an icon at a position in the scene view.
// Draws the Light bulb icon at position of the object. // Because we draw it inside OnDrawGizmos the icon is also pickable // in the scene view. function OnDrawGizmos () { Gizmos.DrawIcon (transform.position, "Light Gizmo.tiff", true); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void OnDrawGizmos() { Gizmos.DrawIcon(transform.position, "Light Gizmo.tiff", true); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def OnDrawGizmos() as void: Gizmos.DrawIcon(transform.position, 'Light Gizmo.tiff', true)