FastObjectField Struct

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(Rect, bool) void
Draws a field for the Animancer.Editor.FastObjectField.Value.
Draw(Rect, Object, bool) void
Draws a field for the `value`.
Draw(Rect, string, Object, bool) Rect
Draws a field for the `value`.
GetIcon(Object) Texture
Returns an icon based on the type of the `value`.
static
Set(Object, string, Texture) void
Sets the current details directly.
SetValue(Object) void
Sets the cached details based on the `value`.
SetValue(Object, string, Texture) void
Sets the cached details.