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/Export/MotionBindings.txt | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Runtime/Export/MotionBindings.txt (limited to 'Runtime/Export/MotionBindings.txt') diff --git a/Runtime/Export/MotionBindings.txt b/Runtime/Export/MotionBindings.txt new file mode 100644 index 0000000..46aef06 --- /dev/null +++ b/Runtime/Export/MotionBindings.txt @@ -0,0 +1,43 @@ +C++RAW + +#include "UnityPrefix.h" +#include "Runtime/Scripting/ScriptingUtility.h" +#include "Runtime/Mono/MonoBehaviour.h" +#include "Runtime/Mono/MonoScript.h" +#include "Runtime/Animation/Motion.h" + +CSRAW +using System; +using Object=UnityEngine.Object; + +namespace UnityEngine +{ + +//*undocumented* leave undocumented until BlendTree are in public API +NONSEALED_CLASS public Motion : Object + + CONDITIONAL UNITY_EDITOR + CUSTOM bool ValidateIfRetargetable(bool showWarning) {return self->ValidateIfRetargetable(showWarning);} + + CONDITIONAL UNITY_EDITOR + CUSTOM_PROP float averageDuration { return self->GetAverageDuration(); } + CONDITIONAL UNITY_EDITOR + CUSTOM_PROP float averageAngularSpeed { return self->GetAverageAngularSpeed(); } + CONDITIONAL UNITY_EDITOR + CUSTOM_PROP Vector3 averageSpeed { return self->GetAverageSpeed(); } + CONDITIONAL UNITY_EDITOR + CUSTOM_PROP float apparentSpeed { return self->GetApparentSpeed(); } + + CONDITIONAL UNITY_EDITOR + CUSTOM_PROP bool isLooping {return self->IsLooping();} + + CONDITIONAL UNITY_EDITOR + CUSTOM_PROP bool isAnimatorMotion {return self->IsAnimatorMotion();} + + CONDITIONAL UNITY_EDITOR + CUSTOM_PROP bool isHumanMotion {return self->IsHumanMotion();} + +END + + +CSRAW } -- cgit v1.1-26-g67d0