Instantly share code, notes, and snippets.

Embed
What would you like to do?
Draw Custom Editor Gizmo - Simple
void OnDrawGizmos (){
// In Editor
if (!Application.isPlaying){
// Draw custom gizmo
Gizmos.DrawIcon(transform.position, "spawn_gizmo.png", true);
// Draw yellow box at size of character, for easier placement in level
Gizmos.color = Color.yellow;
Gizmos.DrawWireCube(transform.position, new Vector3(0.8f, 2.0f, 0.8f));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment