UnitsAttributeDrawer.

DoOptionalBeforeGUI(bool, Rect, Rect, bool, float) Method

Summary

Prepares the details for drawing a toggle to set the field to System.Single.NaN.
Assembly
Animancer.dll
Namespace
Animancer.Units.Editor
Containing Type
UnitsAttributeDrawer

Syntax

public void DoOptionalBeforeGUI(bool isOptional, Rect area, out Rect toggleArea, out bool guiWasEnabled, out float previousLabelWidth)

Remarks

Call this before drawing the field then call Animancer.Units.Editor.UnitsAttributeDrawer.DoOptionalAfterGUI(System.Boolean,UnityEngine.Rect,System.Single@,System.Single,System.Boolean,System.Single) after it.

Parameters

Name Type Description
isOptional bool
area Rect
toggleArea Rect
guiWasEnabled bool
previousLabelWidth float

Return Value

Type Description
void