ObjectNames.GetInspectorTitle

Declaration

public static string GetInspectorTitle(Object obj);

Declaration

public static string GetInspectorTitle(Object obj, bool multiObjectEditing);

Parameters

obj Object to get a title from.
multiObjectEditing Tells if the inspector is running multi-edit.

Returns

string Returns the best title according to objects being inspected.

Description

Inspector title for an object.

If an object is a script, this will return "scriptname (Script)", for example.

Additional resources: ObjectNames.GetClassName, ObjectNames.NicifyVariableName.


Did you find this page useful? Please give it a rating: