Version: 2023.2

ObjectNames.GetInspectorTitle

切换到手册
public static string GetInspectorTitle (Object obj);
public static string GetInspectorTitle (Object obj, bool multiObjectEditing);

参数

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

返回

string Returns the best title according to objects being inspected.

描述

对象的检视面板标题。

例如,如果对象是一个脚本,则此方法将返回“scriptname (Script)”。

另请参阅:ObjectNames.GetClassNameObjectNames.NicifyVariableName