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/BoundCurve.h | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Runtime/Animation/BoundCurve.h (limited to 'Runtime/Animation/BoundCurve.h') diff --git a/Runtime/Animation/BoundCurve.h b/Runtime/Animation/BoundCurve.h new file mode 100644 index 0000000..5a73169 --- /dev/null +++ b/Runtime/Animation/BoundCurve.h @@ -0,0 +1,51 @@ +#pragma once + +class IAnimationBinding; + +namespace UnityEngine +{ +namespace Animation +{ + + +// These values can can never be changed, when a system is deprecated, +// it must be kept commented out and the index is not to be reused! +// The enum value can not be reused. Otherwise built data (assetbundles) will break. +enum BindType +{ + kUnbound = 0, + + // Builtin transform bindings + kBindTransformPosition = 1, // This enum may not be changed. It is used in GenericClipBinding. + kBindTransformRotation = 2, // This enum may not be changed. It is used in GenericClipBinding. + kBindTransformScale = 3, // It is used in GenericClipBinding. + + // Builtin float bindings + kMinSinglePropertyBinding = 5, + kBindFloat = 5, + kBindFloatToBool = 6, + kBindGameObjectActive = 7, + kBindMuscle = 8, + + + // Custom bindings + kBlendShapeWeightBinding = 20, + kRendererMaterialPPtrBinding = 21, + kRendererMaterialPropertyBinding = 22, + kSpriteRendererPPtrBinding = 23, + kMonoBehaviourPropertyBinding = 24, + kAllBindingCount +}; + +struct BoundCurve +{ + void* targetPtr; + UInt32 targetType; + IAnimationBinding* customBinding; + Object* targetObject; + + BoundCurve () { targetObject = 0; targetPtr = 0; targetType = 0; customBinding = 0; } +}; + +} +} -- cgit v1.1-26-g67d0