Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetSourceName(Component)

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

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