diff options
| author | yum <yum.food.vr@gmail.com> | 2023-08-09 20:21:57 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2023-08-10 13:51:25 -0700 |
| commit | fef5887fe4aae8d4a9dc344721426237368a08e5 (patch) | |
| tree | 2e1d53b5ceb5a89466c9faded0cf399f91ca0001 /Scripts/libunity.py | |
| parent | 3bf013dc3b5479f4fbb458d44801403afe0bb1d2 (diff) | |
Begin work on show/hide animations
Diffstat (limited to 'Scripts/libunity.py')
| -rw-r--r-- | Scripts/libunity.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Scripts/libunity.py b/Scripts/libunity.py index e94765d..bbf9498 100644 --- a/Scripts/libunity.py +++ b/Scripts/libunity.py @@ -727,7 +727,7 @@ class UnityAnimator(): return anim_state - def addTransition(self, dst_state): + def addTransition(self, dst_state, dur_s = 0.0): # Create animation state parser = UnityParser() parser.parse(TRANSITION_TEMPLATE) @@ -740,6 +740,7 @@ class UnityAnimator(): node.anchor = str(new_id) state = node.mapping['AnimatorStateTransition'] state.mapping['m_DstState'].mapping['fileID'] = dst_state.anchor + state.mapping['m_TransitionDuration'] = dur_s self.nodes.append(node) return node |
