-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
AssetBundleCreateRequest.bindings.cs
47 lines (41 loc) · 1.51 KB
/
AssetBundleCreateRequest.bindings.cs
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
// 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 System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using UnityEngine.Bindings;
using UnityEngine.Rendering;
using UnityEngine.Scripting;
using UnityEngineInternal;
namespace UnityEngine
{
// Asynchronous create request for an [[AssetBundle]].
[StructLayout(LayoutKind.Sequential)]
[RequiredByNativeCode]
[NativeHeader("Modules/AssetBundle/Public/AssetBundleLoadFromAsyncOperation.h")]
public class AssetBundleCreateRequest : AsyncOperation
{
public extern UnityEngine.AssetBundle assetBundle
{
[NativeMethod("GetAssetBundleBlocking")]
get;
}
[NativeMethod("SetEnableCompatibilityChecks")]
private extern void SetEnableCompatibilityChecks(bool set);
internal void DisableCompatibilityChecks()
{
SetEnableCompatibilityChecks(false);
}
public AssetBundleCreateRequest() { }
private AssetBundleCreateRequest(IntPtr ptr) : base(ptr)
{ }
new internal static class BindingsMarshaller
{
public static AssetBundleCreateRequest ConvertToManaged(IntPtr ptr) => new AssetBundleCreateRequest(ptr);
public static IntPtr ConvertToNative(AssetBundleCreateRequest assetBundleCreateRequest) => assetBundleCreateRequest.m_Ptr;
}
}
}