Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CustomPreviewAttribute

Adds an extra preview in the Inspector for the specified type.
Read time 3 minutesLast updated 6 days ago

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