Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ClearCustomization()

Clears all customization previously applied to the referenced state, removes any fill amount, and stops any looping animation.
Read time 1 minuteLast updated 7 days ago

Definition

public void ClearCustomization()

Remarks

Resets the referenced state's accent bar to its inactive state. This call removes any fill amount previously set through StateReference.FillAmount and stops any looping animation started through GraphMotion.Play. If the current reference does not correspond to any state in the state machine, any stored visual data for that state is removed and the call has no further effect. Throws ObjectDisposedException when you access this method after you call Context.Dispose on the context.
Remove every visual override previously applied to a state and resets the referenced state's accent bar to its inactive state.

Examples

StateReference state = context.GetStateReference(stateID);state.ClearCustomization();