-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathAnimationRemoveScalePlayable.bindings.cs
More file actions
75 lines (62 loc) · 2.65 KB
/
AnimationRemoveScalePlayable.bindings.cs
File metadata and controls
75 lines (62 loc) · 2.65 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using System;
using UnityEngine.Bindings;
using UnityEngine.Scripting;
using UnityEngine.Playables;
using UnityObject = UnityEngine.Object;
namespace UnityEngine.Animations
{
[NativeHeader("Modules/Animation/ScriptBindings/AnimationRemoveScalePlayable.bindings.h")]
[NativeHeader("Modules/Animation/Director/AnimationRemoveScalePlayable.h")]
[NativeHeader("Runtime/Director/Core/HPlayable.h")]
[StaticAccessor("AnimationRemoveScalePlayableBindings", StaticAccessorType.DoubleColon)]
[RequiredByNativeCode]
internal struct AnimationRemoveScalePlayable : IPlayable, IEquatable<AnimationRemoveScalePlayable>
{
PlayableHandle m_Handle;
static readonly AnimationRemoveScalePlayable m_NullPlayable = new AnimationRemoveScalePlayable(PlayableHandle.Null);
public static AnimationRemoveScalePlayable Null { get { return m_NullPlayable; } }
public static AnimationRemoveScalePlayable Create(PlayableGraph graph, int inputCount)
{
var handle = CreateHandle(graph, inputCount);
return new AnimationRemoveScalePlayable(handle);
}
private static PlayableHandle CreateHandle(PlayableGraph graph, int inputCount)
{
PlayableHandle handle = PlayableHandle.Null;
if (!CreateHandleInternal(graph, ref handle))
return PlayableHandle.Null;
handle.SetInputCount(inputCount);
return handle;
}
internal AnimationRemoveScalePlayable(PlayableHandle handle)
{
if (handle.IsValid())
{
if (!handle.IsPlayableOfType<AnimationRemoveScalePlayable>())
throw new InvalidCastException("Can't set handle: the playable is not an AnimationRemoveScalePlayable.");
}
m_Handle = handle;
}
public PlayableHandle GetHandle()
{
return m_Handle;
}
public static implicit operator Playable(AnimationRemoveScalePlayable playable)
{
return new Playable(playable.GetHandle());
}
public static explicit operator AnimationRemoveScalePlayable(Playable playable)
{
return new AnimationRemoveScalePlayable(playable.GetHandle());
}
public bool Equals(AnimationRemoveScalePlayable other)
{
return Equals(other.GetHandle());
}
[NativeThrows]
extern private static bool CreateHandleInternal(PlayableGraph graph, ref PlayableHandle handle);
}
}