summaryrefslogtreecommitdiff
path: root/Runtime/Export/MotionBindings.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Export/MotionBindings.txt')
-rw-r--r--Runtime/Export/MotionBindings.txt43
1 files changed, 43 insertions, 0 deletions
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 }