ドキュメント

Unity Engine

Unity Engine

ReplacementComponentAttribute

Marks a deprecated component with a recommended replacement component type.
読み終わるまでの所要時間 3 分最終更新 1ヶ月前

Definition

public class ReplacementComponentAttribute : Attribute

Remarks

Use this attribute on a component class to tell the Unity Editor which component should replace it.
When you apply this attribute to a deprecated component, the Inspector displays a helper button that lets users add the recommended replacement component to the same GameObject.

Constructors

Constructor

Description

ReplacementComponentAttribute(System.String,System.String)Initializes the attribute with the replacement type name and an optional display name.

Properties

Property

Description

DisplayNameThe name Unity displays for the replacement component in the Inspector.
TypeNameThe full type name (including namespace) of the replacement component.

Inheritance

Inherited Members