AddAnyStateTransition
Utility function to add an AnyState transition to the specified state or statemachine.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor.Animations
- Assembly: UnityEditor.CoreModule
AddAnyStateTransition(AnimatorState)
Utility function to add an AnyState transition to the specified state or statemachine.
public AnimatorStateTransition AddAnyStateTransition(AnimatorState destinationState)
Parameters
The destination state.
Returns
Type | Description |
|---|---|
| AnimatorStateTransition |
Remarks
The transition asset that is created is added as a sub asset of the state machine. Its important that AnyStateTransitions are added to the root state machine. AnyStateTranistions added to a sub state machine will be discarded at runtime. This function pushes an Undo operation.
AddAnyStateTransition(AnimatorStateMachine)
Utility function to add an AnyState transition to the specified state or statemachine.
public AnimatorStateTransition AddAnyStateTransition(AnimatorStateMachine destinationStateMachine)
Parameters
The destination statemachine.
Returns
Type | Description |
|---|---|
| AnimatorStateTransition |
Remarks
The transition asset that is created is added as a sub asset of the state machine. Its important that AnyStateTransitions are added to the root state machine. AnyStateTranistions added to a sub state machine will be discarded at runtime. This function pushes an Undo operation.