기술 자료

Unity Engine

Unity Engine

CustomPreviewAttribute

Adds an extra preview in the Inspector for the specified type.
읽는 시간 3분최근 업데이트: 한 달 전

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