Summary
[Editor-Only] A GUI wrapper for drawing any object as a label with an icon.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Base Types
-
- ValueType
graph BT
Type-->Base0["ValueType"]
Type["FastObjectField"]
class Type type-node
Syntax
public struct FastObjectField : ValueType
Properties
Name | Value | Summary |
---|---|---|
Icon | Texture |
The icon drawn in the last
Draw call. |
Null | FastObjectField |
A
Animancer.Editor.FastObjectField representing null .static
|
Text | string |
The text used for the label in the last
Draw call. |
Value | Object |
The object passed into the last
Draw call. |
Methods
Name | Value | Summary |
---|---|---|
Clear |
void |
Clears all cached details.
|
Draw |
void |
Draws a field for the
Animancer.Editor.FastObjectField.Value . |
Draw |
void |
Draws a field for the `value`.
|
Draw |
Rect |
Draws a field for the `value`.
|
GetIcon |
Texture |
Returns an icon based on the type of the `value`.
static
|
Set |
void |
Sets the current details directly.
|
SetValue |
void |
Sets the cached details based on the `value`.
|
SetValue |
void |
Sets the cached details.
|