Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

ObjectNames.GetInspectorTitle

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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.