scripts
This commit is contained in:
@@ -0,0 +1,108 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Playables;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Animations
|
||||
{
|
||||
// Token: 0x020001F7 RID: 503
|
||||
[RequiredByNativeCode]
|
||||
public struct AnimationPlayableOutput : IPlayableOutput
|
||||
{
|
||||
// Token: 0x06002324 RID: 8996 RVA: 0x00028EE0 File Offset: 0x000270E0
|
||||
internal AnimationPlayableOutput(PlayableOutputHandle handle)
|
||||
{
|
||||
if (handle.IsValid())
|
||||
{
|
||||
if (!handle.IsPlayableOutputOfType<AnimationPlayableOutput>())
|
||||
{
|
||||
throw new InvalidCastException("Can't set handle: the playable is not an AnimationPlayableOutput.");
|
||||
}
|
||||
}
|
||||
this.m_Handle = handle;
|
||||
}
|
||||
|
||||
// Token: 0x06002325 RID: 8997 RVA: 0x00028F10 File Offset: 0x00027110
|
||||
public static AnimationPlayableOutput Create(PlayableGraph graph, string name, Animator target)
|
||||
{
|
||||
PlayableOutputHandle playableOutputHandle;
|
||||
AnimationPlayableOutput animationPlayableOutput;
|
||||
if (!AnimationPlayableGraphExtensions.InternalCreateAnimationOutput(ref graph, name, out playableOutputHandle))
|
||||
{
|
||||
animationPlayableOutput = AnimationPlayableOutput.Null;
|
||||
}
|
||||
else
|
||||
{
|
||||
AnimationPlayableOutput animationPlayableOutput2 = new AnimationPlayableOutput(playableOutputHandle);
|
||||
animationPlayableOutput2.SetTarget(target);
|
||||
animationPlayableOutput = animationPlayableOutput2;
|
||||
}
|
||||
return animationPlayableOutput;
|
||||
}
|
||||
|
||||
// Token: 0x17000839 RID: 2105
|
||||
// (get) Token: 0x06002326 RID: 8998 RVA: 0x00028F50 File Offset: 0x00027150
|
||||
public static AnimationPlayableOutput Null
|
||||
{
|
||||
get
|
||||
{
|
||||
return new AnimationPlayableOutput(PlayableOutputHandle.Null);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002327 RID: 8999 RVA: 0x00028F70 File Offset: 0x00027170
|
||||
public PlayableOutputHandle GetHandle()
|
||||
{
|
||||
return this.m_Handle;
|
||||
}
|
||||
|
||||
// Token: 0x06002328 RID: 9000 RVA: 0x00028F8C File Offset: 0x0002718C
|
||||
public static implicit operator PlayableOutput(AnimationPlayableOutput output)
|
||||
{
|
||||
return new PlayableOutput(output.GetHandle());
|
||||
}
|
||||
|
||||
// Token: 0x06002329 RID: 9001 RVA: 0x00028FB0 File Offset: 0x000271B0
|
||||
public static explicit operator AnimationPlayableOutput(PlayableOutput output)
|
||||
{
|
||||
return new AnimationPlayableOutput(output.GetHandle());
|
||||
}
|
||||
|
||||
// Token: 0x0600232A RID: 9002 RVA: 0x00028FD4 File Offset: 0x000271D4
|
||||
public Animator GetTarget()
|
||||
{
|
||||
return AnimationPlayableOutput.InternalGetTarget(ref this.m_Handle);
|
||||
}
|
||||
|
||||
// Token: 0x0600232B RID: 9003 RVA: 0x00028FF4 File Offset: 0x000271F4
|
||||
public void SetTarget(Animator value)
|
||||
{
|
||||
AnimationPlayableOutput.InternalSetTarget(ref this.m_Handle, value);
|
||||
}
|
||||
|
||||
// Token: 0x0600232C RID: 9004 RVA: 0x00029004 File Offset: 0x00027204
|
||||
private static Animator InternalGetTarget(ref PlayableOutputHandle handle)
|
||||
{
|
||||
return AnimationPlayableOutput.INTERNAL_CALL_InternalGetTarget(ref handle);
|
||||
}
|
||||
|
||||
// Token: 0x0600232D RID: 9005
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern Animator INTERNAL_CALL_InternalGetTarget(ref PlayableOutputHandle handle);
|
||||
|
||||
// Token: 0x0600232E RID: 9006 RVA: 0x00029020 File Offset: 0x00027220
|
||||
private static void InternalSetTarget(ref PlayableOutputHandle handle, Animator target)
|
||||
{
|
||||
AnimationPlayableOutput.INTERNAL_CALL_InternalSetTarget(ref handle, target);
|
||||
}
|
||||
|
||||
// Token: 0x0600232F RID: 9007
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern void INTERNAL_CALL_InternalSetTarget(ref PlayableOutputHandle handle, Animator target);
|
||||
|
||||
// Token: 0x04000546 RID: 1350
|
||||
private PlayableOutputHandle m_Handle;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user