function OnDrawGizmos () : void
Description
Implement this OnDrawGizmos if you want to draw gizmos that are also pickable and always drawn.
This allows you to quickly pick important objects in your scene.
Note that OnDrawGizmos will use a mouse position that is relative to the Scene View.
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void OnDrawGizmos() {
Gizmos.DrawIcon(transform.position,
"Light Gizmo.tiff");
}
}
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def
OnDrawGizmos():
Gizmos.DrawIcon(transform.position, '
Light Gizmo.tiff')