AddAnyStateTransition
Utility function to add an AnyState transition to the specified state or statemachine.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.Animations
- Assembly: UnityEditor
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.