UnitsAttributeDrawer.

DoOptionalAfterGUI(bool, Rect, float, float, bool, float) Method

Summary

Draws a toggle to set the `value` to System.Single.NaN when disabled.
Assembly
Animancer.dll
Namespace
Animancer.Units.Editor
Containing Type
UnitsAttributeDrawer

Syntax

public void DoOptionalAfterGUI(bool isOptional, Rect area, ref float value, float defaultValue, bool guiWasEnabled, float previousLabelWidth)

Parameters

Name Type Description
isOptional bool
area Rect
value float
defaultValue float
guiWasEnabled bool
previousLabelWidth float

Return Value

Type Description
void