PolymorphicDrawerDetails Class

Summary

[Editor-Only] An assembly attribute for configuring how the Animancer.Editor.PolymorphicDrawer displays a particular type.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Base Types
  • Attribute
graph BT Type-->Base0["Attribute"] Type["PolymorphicDrawerDetails"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class PolymorphicDrawerDetails : Attribute

Attributes

Type Description
AttributeUsageAttribute

Constructors

Name Summary
PolymorphicDrawerDetails(Type) Creates a new Animancer.Editor.PolymorphicDrawerDetails.

Fields

Name Constant Value Summary
Default
A default instance.
static
Type
The System.Type this attribute applies to.

Properties

Name Value Summary
SeparateHeader bool
Should the label and Animancer.Editor.TypeSelectionButton be drawn on a separate line before the field's regular GUI?

Methods

Name Value Summary
Get(Object) PolymorphicDrawerDetails
Returns the Animancer.Editor.PolymorphicDrawerDetails associated with the `obj` or any of its base types. Returns null if none of them have any details.
static
Get(Type) PolymorphicDrawerDetails
Returns the Animancer.Editor.PolymorphicDrawerDetails associated with the `type` or any of its base types. Returns null if none of them have any details.
static