CustomPreviewAttribute
Adds an extra preview in the Inspector for the specified type.
Read time 3 minutesLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor
- Inherits from: Attribute
- Implements: _Attribute
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]public sealed class CustomPreviewAttribute : Attribute, _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. |