ドキュメント

Unity Engine

Unity Engine

CustomPreviewAttribute

Adds an extra preview in the Inspector for the specified type.
読み終わるまでの所要時間 3 分最終更新 1ヶ月前

Definition

[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]public sealed class CustomPreviewAttribute : Attribute

Remarks

You can use this attribute to add your custom preview to any object that can be Inspected.

Constructors

Constructor

Description

CustomPreviewAttribute(System.Type)Tells a DefaultPreview which class it's a preview for.

Inheritance

Inherited Members