AddTransition
Utility function to add an outgoing transition.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEditor.Animations
- Assembly: UnityEditor
AddTransition(AnimatorStateTransition)
Utility function to add an outgoing transition.
public void AddTransition(AnimatorStateTransition transition)
Parameters
The transition to add.
Remarks
This function pushes an Undo operation.
AddTransition(AnimatorState)
Utility function to add an outgoing transition to the destination state.
public AnimatorStateTransition AddTransition(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. This function pushes an Undo operation.
AddTransition(AnimatorStateMachine)
Utility function to add an outgoing transition to the destination state machine.
public AnimatorStateTransition AddTransition(AnimatorStateMachine destinationStateMachine)
Parameters
The destination state machine.
Returns
Type | Description |
|---|---|
| AnimatorStateTransition |
Remarks
The transition asset that is created is added as a sub asset of the state. This function pushes an Undo operation.
AddTransition(AnimatorState, bool)
Utility function to add an outgoing transition to the destination state.
public AnimatorStateTransition AddTransition(AnimatorState destinationState, bool defaultExitTime)
Parameters
The destination state.
If true, the exit time will be the equivalent of 0.25 second.
Returns
Type | Description |
|---|---|
| AnimatorStateTransition |
Remarks
The transition asset that is created is added as a sub asset of the state. This function pushes an Undo operation.
AddTransition(AnimatorStateMachine, bool)
Utility function to add an outgoing transition to the destination state machine.
public AnimatorStateTransition AddTransition(AnimatorStateMachine destinationStateMachine, bool defaultExitTime)
Parameters
The destination state machine.
If true, the exit time will be the equivalent of 0.25 second.
Returns
Type | Description |
|---|---|
| AnimatorStateTransition |
Remarks
The transition asset that is created is added as a sub asset of the state. This function pushes an Undo operation.