71 lines
2.0 KiB
C#
71 lines
2.0 KiB
C#
using System;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine.Playables
|
|
{
|
|
// Token: 0x020004C1 RID: 1217
|
|
[RequiredByNativeCode]
|
|
public struct ScriptPlayableOutput : IPlayableOutput
|
|
{
|
|
// Token: 0x06003B7B RID: 15227 RVA: 0x000687D8 File Offset: 0x000669D8
|
|
internal ScriptPlayableOutput(PlayableOutputHandle handle)
|
|
{
|
|
if (handle.IsValid())
|
|
{
|
|
if (!handle.IsPlayableOutputOfType<ScriptPlayableOutput>())
|
|
{
|
|
throw new InvalidCastException("Can't set handle: the playable is not a ScriptPlayableOutput.");
|
|
}
|
|
}
|
|
this.m_Handle = handle;
|
|
}
|
|
|
|
// Token: 0x06003B7C RID: 15228 RVA: 0x00068808 File Offset: 0x00066A08
|
|
public static ScriptPlayableOutput Create(PlayableGraph graph, string name)
|
|
{
|
|
PlayableOutputHandle playableOutputHandle;
|
|
ScriptPlayableOutput scriptPlayableOutput;
|
|
if (!PlayableGraph.CreateScriptOutputInternal(ref graph, name, out playableOutputHandle))
|
|
{
|
|
scriptPlayableOutput = ScriptPlayableOutput.Null;
|
|
}
|
|
else
|
|
{
|
|
scriptPlayableOutput = new ScriptPlayableOutput(playableOutputHandle);
|
|
}
|
|
return scriptPlayableOutput;
|
|
}
|
|
|
|
// Token: 0x17000D7D RID: 3453
|
|
// (get) Token: 0x06003B7D RID: 15229 RVA: 0x00068840 File Offset: 0x00066A40
|
|
public static ScriptPlayableOutput Null
|
|
{
|
|
get
|
|
{
|
|
return new ScriptPlayableOutput(PlayableOutputHandle.Null);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003B7E RID: 15230 RVA: 0x00068860 File Offset: 0x00066A60
|
|
public PlayableOutputHandle GetHandle()
|
|
{
|
|
return this.m_Handle;
|
|
}
|
|
|
|
// Token: 0x06003B7F RID: 15231 RVA: 0x0006887C File Offset: 0x00066A7C
|
|
public static implicit operator PlayableOutput(ScriptPlayableOutput output)
|
|
{
|
|
return new PlayableOutput(output.GetHandle());
|
|
}
|
|
|
|
// Token: 0x06003B80 RID: 15232 RVA: 0x000688A0 File Offset: 0x00066AA0
|
|
public static explicit operator ScriptPlayableOutput(PlayableOutput output)
|
|
{
|
|
return new ScriptPlayableOutput(output.GetHandle());
|
|
}
|
|
|
|
// Token: 0x040011E8 RID: 4584
|
|
private PlayableOutputHandle m_Handle;
|
|
}
|
|
}
|