Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ClearCustomization()

Clears all customization previously applied to the referenced transition.
Read time 1 minuteLast updated 6 days ago

Definition

public void ClearCustomization()

Remarks

If the current reference does not correspond to any transition in the state machine, any stored visual data for that transition is removed and the call has no further effect. Calling this method has no effect when the TransitionReference has no associated TransitionReference.Context, such as when it is
default
. Throws ObjectDisposedException when you access this method after you call Context.Dispose on the context.
Remove every visual override previously applied to a transition and restore the default drawing in the state machine canvas.

Examples

TransitionReference transitionRef = context.GetTransitionReference(transitionID);transitionRef.ClearCustomization();