From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Animation/AnimationUtility.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Runtime/Animation/AnimationUtility.h (limited to 'Runtime/Animation/AnimationUtility.h') diff --git a/Runtime/Animation/AnimationUtility.h b/Runtime/Animation/AnimationUtility.h new file mode 100644 index 0000000..7a92ef8 --- /dev/null +++ b/Runtime/Animation/AnimationUtility.h @@ -0,0 +1,17 @@ +#pragma once + +#include "Runtime/mecanim/types.h" + +class AnimationClip; +class Transform; +namespace Unity { class GameObject; } +namespace mecanim { class crc32 ; namespace skeleton { struct Skeleton; } } + + +void SampleAnimation (Unity::GameObject& go, AnimationClip& clip, float inTime, int wrapMode); + + +mecanim::crc32 AppendPathToHash(const mecanim::crc32& nameHash, const char* path); +Transform* FindChildWithID( Transform* transform, const mecanim::crc32& nameHash, mecanim::uint32_t id); + +Transform* FindAvatarRoot(const mecanim::skeleton::Skeleton* skeleton, const mecanim::uint32_t* nameArray, Transform& root, bool hasTransformHierarchy); -- cgit v1.1-26-g67d0