56 lines
1.6 KiB
C#
56 lines
1.6 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine.Networking
|
|
{
|
|
// Token: 0x0200029A RID: 666
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class DownloadHandlerMovieTexture : DownloadHandler
|
|
{
|
|
// Token: 0x06002D54 RID: 11604 RVA: 0x000402BC File Offset: 0x0003E4BC
|
|
public DownloadHandlerMovieTexture()
|
|
{
|
|
this.InternalCreateDHMovieTexture();
|
|
}
|
|
|
|
// Token: 0x06002D55 RID: 11605
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
internal extern void InternalCreateDHMovieTexture();
|
|
|
|
// Token: 0x06002D56 RID: 11606 RVA: 0x000402CC File Offset: 0x0003E4CC
|
|
protected override byte[] GetData()
|
|
{
|
|
return this.InternalGetData();
|
|
}
|
|
|
|
// Token: 0x06002D57 RID: 11607 RVA: 0x000402E8 File Offset: 0x0003E4E8
|
|
protected override string GetText()
|
|
{
|
|
throw new NotSupportedException("String access is not supported for movies");
|
|
}
|
|
|
|
// Token: 0x06002D58 RID: 11608
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern byte[] InternalGetData();
|
|
|
|
// Token: 0x17000A46 RID: 2630
|
|
// (get) Token: 0x06002D59 RID: 11609
|
|
public extern MovieTexture movieTexture
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x06002D5A RID: 11610 RVA: 0x000402F8 File Offset: 0x0003E4F8
|
|
public static MovieTexture GetContent(UnityWebRequest uwr)
|
|
{
|
|
return DownloadHandler.GetCheckedDownloader<DownloadHandlerMovieTexture>(uwr).movieTexture;
|
|
}
|
|
}
|
|
}
|