From fef5887fe4aae8d4a9dc344721426237368a08e5 Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 9 Aug 2023 20:21:57 -0700 Subject: Begin work on show/hide animations --- Scripts/libunity.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Scripts/libunity.py') 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 -- cgit v1.2.3