blob: 46aef06ae37fbeefe32d7ec34f98e2a866a5ec70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 }
|