This version of Unity is unsupported.

ObjectNames.GetInspectorTitle

public static string GetInspectorTitle(Object obj);

Description

Inspector title for an object.

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

See Also: ObjectNames.GetClassName, ObjectNames.NicifyVariableName.