기술 자료

Unity Engine

Unity Engine

ClearCustomization()

Clears all customization previously applied to the referenced transition.
읽는 시간 1분최근 업데이트: 2달 전

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();