Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetInspectorTitle

Inspector title for an object.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

GetInspectorTitle(Object, bool)

Inspector title for an object.
public static string GetInspectorTitle(Object obj, bool multiObjectEditing)

Parameters

Object to get a title from.

multiObjectEditing

Tells if the inspector is running multi-edit.

Returns

Type

Description

stringReturns the best title according to objects being inspected.

Remarks

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

GetInspectorTitle(Object)

Inspector title for an object.
public static string GetInspectorTitle(Object obj)

Parameters

Object to get a title from.

Returns

Type

Description

stringReturns the best title according to objects being inspected.

Remarks

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