Documentation

Unity Engine

Unity Engine

GetSourceName(Component)

Returns the component specific name to be used in the apply menu item.
Read time 1 minuteLast updated a month ago

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}".