Handles.Label exact usage

How exactly should I use Handles.Label? Here’s what I have(C#, in editor folder):

using UnityEditor;

public class objectLabel : Editor
{ 


void OnSceneGUI () { 

var target;

Handles.Label(target.transform.position, "Text"); 

} 



}

That should be fine, you can think of Label as a tooltip, the greyed out box that contains data, you can make it whatever you want. If you check out the example it’s using the label to describe and display the selected GameObject’s transform and area while you interact with the GameObject.

In your post you’re usage is correct if you want the value “Text” displayed in the grey/blackish box when you interact with the target.

Though you are missing the CustomEditor attribute that should decorate the class that is the type of object you want this to apply to.