- Home /
Is there a way to draw a custom image to a handle in a custom editor like you can for gizmos?
Is this possible?
Comment
Answer by jamiejammas · Apr 26, 2016 at 04:26 AM
http://docs.unity3d.com/ScriptReference/Handles.Label.html
you can use Handles.Label() to draw an image and label at a given position in the editor, an example would be something like this:
private Vector3 pos = Vector3.zero;
private Texture image = Resources.Load("your image path");
private string label = "your label";
private void OnSceneGUI()
{
Handles.Label(pos, label, image);
}
Your answer
Follow this Question
Related Questions
Draggable Nodes in Editor? 1 Answer
Select object by selecting gizmo or handle? 1 Answer
box gizmo with scale handles 0 Answers
Handles.matrix seems strange? 2 Answers