文档

Unity Engine

Unity Engine

GetSourceName(Component)

Returns the component specific name to be used in the apply menu item.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
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}".