ドキュメント

Unity Engine

Unity Engine

GetSourceName(Component)

Returns the component specific name to be used in the apply menu item.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
string GetSourceName(Component comp)

Parameters

The component of interest.

Returns

Type

Description

stringA string containing the name.

Remarks

The component specific name is shown in the apply menu item texts to describe the object specific name of the target of the operation: the apply item text is defined as "Apply override to '{SourceName}' {SourceTerm}".