using System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Security; using System.Security.Permissions; using Unity.Collections; using Unity.Content; using Unity.Jobs; using UnityEngine; using UnityEngine.Bindings; using UnityEngine.SceneManagement; [assembly: InternalsVisibleTo("Unity.RuntimeTests.Framework.Tests")] [assembly: InternalsVisibleTo("Unity.PerformanceTests.RuntimeTestRunner.Tests")] [assembly: InternalsVisibleTo("Unity.RuntimeTests.AllIn1Runner")] [assembly: InternalsVisibleTo("Unity.Timeline")] [assembly: InternalsVisibleTo("Assembly-CSharp-testable")] [assembly: InternalsVisibleTo("Assembly-CSharp-firstpass-testable")] [assembly: InternalsVisibleTo("UnityEngine.SpatialTracking")] [assembly: InternalsVisibleTo("GoogleAR.UnityNative")] [assembly: InternalsVisibleTo("Unity.RuntimeTests.Framework")] [assembly: InternalsVisibleTo("Unity.WindowsMRAutomation")] [assembly: InternalsVisibleTo("Unity.2D.Sprite.Editor")] [assembly: InternalsVisibleTo("Unity.2D.Sprite.EditorTests")] [assembly: InternalsVisibleTo("Unity.UI.Builder.Editor")] [assembly: InternalsVisibleTo("UnityEditor.UIBuilderModule")] [assembly: InternalsVisibleTo("Unity.UI.Builder.EditorTests")] [assembly: InternalsVisibleTo("Unity.UIElements")] [assembly: InternalsVisibleTo("UnityEngine.UIElementsGameObjectsModule")] [assembly: InternalsVisibleTo("Unity.UIElements.Editor")] [assembly: InternalsVisibleTo("Unity.RenderPipelines.Universal.2D.Runtime")] [assembly: InternalsVisibleTo("Unity.UIElements.PlayModeTests")] [assembly: InternalsVisibleTo("Unity.RuntimeTests")] [assembly: InternalsVisibleTo("Unity.IntegrationTests.Timeline")] [assembly: InternalsVisibleTo("UnityEngine.PS5VRModule")] [assembly: UnityEngineModuleAssembly] [assembly: InternalsVisibleTo("UnityEngine.Networking")] [assembly: InternalsVisibleTo("UnityEngine.Cloud")] [assembly: InternalsVisibleTo("UnityEngine.Cloud.Service")] [assembly: InternalsVisibleTo("Unity.Analytics")] [assembly: InternalsVisibleTo("UnityEngine.Analytics")] [assembly: InternalsVisibleTo("UnityEngine.UnityAnalyticsCommon")] [assembly: InternalsVisibleTo("Unity.IntegrationTests.Framework")] [assembly: InternalsVisibleTo("UnityEngine.Advertisements")] [assembly: InternalsVisibleTo("UnityEngine.TestRunner")] [assembly: InternalsVisibleTo("Unity.Automation")] [assembly: InternalsVisibleTo("Unity.Burst")] [assembly: InternalsVisibleTo("Unity.Burst.Editor")] [assembly: InternalsVisibleTo("Unity.DeploymentTests.Services")] [assembly: InternalsVisibleTo("Unity.IntegrationTests")] [assembly: InternalsVisibleTo("Unity.IntegrationTests.ExternalVersionControl")] [assembly: InternalsVisibleTo("Unity.IntegrationTests.UnityAnalytics")] [assembly: InternalsVisibleTo("UnityEngine.Purchasing")] [assembly: InternalsVisibleTo("UnityEngine.PS5Module")] [assembly: InternalsVisibleTo("UnityEngine.UIElements.Tests")] [assembly: InternalsVisibleTo("Unity.UIElements.RuntimeTests")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.012")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.013")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.014")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.015")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.016")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.017")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.018")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.019")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.011")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.020")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.022")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.023")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.024")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridgeDev.001")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridgeDev.002")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridgeDev.003")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridgeDev.004")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridgeDev.005")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.021")] [assembly: InternalsVisibleTo("Unity.UIElements.EditorTests")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.010")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.008")] [assembly: InternalsVisibleTo("UnityEngine.UI")] [assembly: InternalsVisibleTo("Unity.Networking.Transport")] [assembly: InternalsVisibleTo("Unity.ucg.QoS")] [assembly: InternalsVisibleTo("Unity.Services.QoS")] [assembly: InternalsVisibleTo("Unity.Logging")] [assembly: InternalsVisibleTo("Unity.Entities")] [assembly: InternalsVisibleTo("Unity.Entities.Tests")] [assembly: InternalsVisibleTo("Unity.Collections")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.009")] [assembly: InternalsVisibleTo("Unity.Runtime")] [assembly: InternalsVisibleTo("UnityEngine.Core.Runtime.Tests")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.001")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.002")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.003")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.004")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.005")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.006")] [assembly: InternalsVisibleTo("Unity.InternalAPIEngineBridge.007")] [assembly: InternalsVisibleTo("Unity.Core")] [assembly: InternalsVisibleTo("UnityEngine.PS4VRModule")] [assembly: InternalsVisibleTo("UnityEngine.PS4Module")] [assembly: InternalsVisibleTo("UnityEngine.SwitchModule")] [assembly: InternalsVisibleTo("UnityEngine.CommandStateObserverModule")] [assembly: InternalsVisibleTo("UnityEngine.ContentLoadModule")] [assembly: InternalsVisibleTo("UnityEngine.UnityConnectModule")] [assembly: InternalsVisibleTo("UnityEngine.UnityAnalyticsCommonModule")] [assembly: InternalsVisibleTo("UnityEngine.TLSModule")] [assembly: InternalsVisibleTo("UnityEngine.UnityWebRequestModule")] [assembly: InternalsVisibleTo("UnityEngine.UnityAnalyticsModule")] [assembly: InternalsVisibleTo("UnityEngine.ClusterRendererModule")] [assembly: InternalsVisibleTo("UnityEngine.CrashReportingModule")] [assembly: InternalsVisibleTo("UnityEngine.DirectorModule")] [assembly: InternalsVisibleTo("UnityEngine.GIModule")] [assembly: InternalsVisibleTo("UnityEngine.ImageConversionModule")] [assembly: InternalsVisibleTo("UnityEngine.GameCenterModule")] [assembly: InternalsVisibleTo("UnityEngine.GraphToolsFoundationModule")] [assembly: InternalsVisibleTo("Unity.Subsystem.Registration")] [assembly: InternalsVisibleTo("UnityEngine.HierarchyCoreModule")] [assembly: InternalsVisibleTo("UnityEngine.DSPGraphModule")] [assembly: InternalsVisibleTo("UnityEngine.TextRenderingModule")] [assembly: InternalsVisibleTo("UnityEngine.ClusterInputModule")] [assembly: InternalsVisibleTo("UnityEngine.AudioModule")] [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: InternalsVisibleTo("UnityEngine")] [assembly: InternalsVisibleTo("UnityEngine.SharedInternalsModule")] [assembly: InternalsVisibleTo("UnityEngine.CoreModule")] [assembly: InternalsVisibleTo("UnityEngine.AIModule")] [assembly: InternalsVisibleTo("UnityEngine.ClothModule")] [assembly: InternalsVisibleTo("UnityEngine.PhysicsModule")] [assembly: InternalsVisibleTo("UnityEngine.InputModule")] [assembly: InternalsVisibleTo("UnityEngine.ARModule")] [assembly: InternalsVisibleTo("UnityEngine.AccessibilityModule")] [assembly: InternalsVisibleTo("UnityEngine.AndroidJNIModule")] [assembly: InternalsVisibleTo("UnityEngine.AnimationModule")] [assembly: InternalsVisibleTo("UnityEngine.HotReloadModule")] [assembly: InternalsVisibleTo("UnityEngine.AssetBundleModule")] [assembly: InternalsVisibleTo("UnityEngine.JSONSerializeModule")] [assembly: InternalsVisibleTo("UnityEngine.InputLegacyModule")] [assembly: InternalsVisibleTo("UnityEngine.GridModule")] [assembly: InternalsVisibleTo("UnityEngine.TextCoreTextEngineModule")] [assembly: InternalsVisibleTo("UnityEngine.UIModule")] [assembly: InternalsVisibleTo("UnityEngine.TextCoreFontEngineModule")] [assembly: InternalsVisibleTo("UnityEngine.UmbraModule")] [assembly: InternalsVisibleTo("UnityEngine.UnityCurlModule")] [assembly: InternalsVisibleTo("UnityEngine.UnityTestProtocolModule")] [assembly: InternalsVisibleTo("UnityEngine.UnityWebRequestAssetBundleModule")] [assembly: InternalsVisibleTo("UnityEngine.UnityWebRequestAudioModule")] [assembly: InternalsVisibleTo("UnityEngine.TerrainPhysicsModule")] [assembly: InternalsVisibleTo("UnityEngine.UnityWebRequestTextureModule")] [assembly: InternalsVisibleTo("UnityEngine.VFXModule")] [assembly: InternalsVisibleTo("UnityEngine.XRModule")] [assembly: InternalsVisibleTo("UnityEngine.VRModule")] [assembly: InternalsVisibleTo("UnityEngine.VehiclesModule")] [assembly: InternalsVisibleTo("UnityEngine.VideoModule")] [assembly: InternalsVisibleTo("UnityEngine.VirtualTexturingModule")] [assembly: InternalsVisibleTo("UnityEngine.WindModule")] [assembly: InternalsVisibleTo("UnityEngine.UnityWebRequestWWWModule")] [assembly: InternalsVisibleTo("UnityEngine.TerrainModule")] [assembly: InternalsVisibleTo("UnityEngine.UIElementsModule")] [assembly: InternalsVisibleTo("UnityEngine.SubstanceModule")] [assembly: InternalsVisibleTo("UnityEngine.IMGUIModule")] [assembly: InternalsVisibleTo("UnityEngine.InputForUIModule")] [assembly: InternalsVisibleTo("UnityEngine.LocalizationModule")] [assembly: InternalsVisibleTo("UnityEngine.MarshallingModule")] [assembly: InternalsVisibleTo("UnityEngine.SubsystemsModule")] [assembly: InternalsVisibleTo("UnityEngine.NVIDIAModule")] [assembly: InternalsVisibleTo("UnityEngine.ParticleSystemModule")] [assembly: InternalsVisibleTo("UnityEngine.PerformanceReportingModule")] [assembly: InternalsVisibleTo("UnityEngine.MultiplayerModule")] [assembly: InternalsVisibleTo("UnityEngine.ProfilerModule")] [assembly: InternalsVisibleTo("UnityEngine.PropertiesModule")] [assembly: InternalsVisibleTo("UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule")] [assembly: InternalsVisibleTo("UnityEngine.ScreenCaptureModule")] [assembly: InternalsVisibleTo("UnityEngine.SpriteShapeModule")] [assembly: InternalsVisibleTo("UnityEngine.TilemapModule")] [assembly: InternalsVisibleTo("UnityEngine.SpriteMaskModule")] [assembly: InternalsVisibleTo("UnityEngine.StreamingModule")] [assembly: InternalsVisibleTo("UnityEngine.Physics2DModule")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.0.0.0")] [module: UnverifiableCode] namespace Unity.Loading; internal enum ContentFileReservedID { None, ResolveReferencesWithPM } public enum LoadingStatus { InProgress, Completed, Failed } public struct ContentFileUnloadHandle { internal JobHandle jobHandle; public bool IsCompleted => ((JobHandle)(ref jobHandle)).IsCompleted; public bool WaitForCompletion(int timeoutMs) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) return ContentLoadInterface.WaitForJobCompletion(jobHandle, timeoutMs); } } public struct ContentFile { internal ulong Id; public bool IsValid => ContentLoadInterface.ContentFile_IsHandleValid(this); public LoadingStatus LoadingStatus { get { ThrowIfInvalidHandle(); return ContentLoadInterface.ContentFile_GetLoadingStatus(this); } } public static ContentFile GlobalTableDependency => new ContentFile { Id = 1uL }; public ContentFileUnloadHandle UnloadAsync() { ThrowIfInvalidHandle(); return ContentLoadInterface.ContentFile_UnloadAsync(this); } public Object[] GetObjects() { ThrowIfNotComplete(); return ContentLoadInterface.ContentFile_GetObjects(this); } public Object GetObject(ulong localIdentifierInFile) { ThrowIfNotComplete(); return ContentLoadInterface.ContentFile_GetObject(this, localIdentifierInFile); } private void ThrowIfInvalidHandle() { if (!IsValid) { throw new Exception("The ContentFile operation cannot be performed because the handle is invalid. Did you already unload it?"); } } private void ThrowIfNotComplete() { switch (LoadingStatus) { case LoadingStatus.Failed: throw new Exception("Cannot use a failed ContentFile operation."); case LoadingStatus.InProgress: throw new Exception("This ContentFile functionality is not supported while loading is in progress"); } } public bool WaitForCompletion(int timeoutMs) { ThrowIfInvalidHandle(); return ContentLoadInterface.WaitForLoadCompletion(this, timeoutMs); } } public enum SceneLoadingStatus { InProgress, WaitingForIntegrate, WillIntegrateNextFrame, Complete, Failed } public struct ContentSceneParameters { [NativeName("LoadSceneMode")] internal LoadSceneMode m_LoadSceneMode; [NativeName("LocalPhysicsMode")] internal LocalPhysicsMode m_LocalPhysicsMode; [NativeName("AutoIntegrate")] internal bool m_AutoIntegrate; public LoadSceneMode loadSceneMode { get { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000a: Unknown result type (might be due to invalid IL or missing references) return m_LoadSceneMode; } set { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0003: Unknown result type (might be due to invalid IL or missing references) m_LoadSceneMode = value; } } public LocalPhysicsMode localPhysicsMode { get { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000a: Unknown result type (might be due to invalid IL or missing references) return m_LocalPhysicsMode; } set { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0003: Unknown result type (might be due to invalid IL or missing references) m_LocalPhysicsMode = value; } } public bool autoIntegrate { get { return m_AutoIntegrate; } set { m_AutoIntegrate = value; } } } public struct ContentSceneFile { internal ulong Id; public Scene Scene { get { //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) ThrowIfInvalidHandle(); return ContentLoadInterface.ContentSceneFile_GetScene(this); } } public SceneLoadingStatus Status { get { ThrowIfInvalidHandle(); return ContentLoadInterface.ContentSceneFile_GetStatus(this); } } public bool IsValid => ContentLoadInterface.ContentSceneFile_IsHandleValid(this); public void IntegrateAtEndOfFrame() { ThrowIfInvalidHandle(); ContentLoadInterface.ContentSceneFile_IntegrateAtEndOfFrame(this); } public bool UnloadAtEndOfFrame() { ThrowIfInvalidHandle(); return ContentLoadInterface.ContentSceneFile_UnloadAtEndOfFrame(this); } public bool WaitForLoadCompletion(int timeoutMs) { ThrowIfInvalidHandle(); return ContentLoadInterface.ContentSceneFile_WaitForCompletion(this, timeoutMs); } private void ThrowIfInvalidHandle() { if (!IsValid) { throw new Exception("The ContentSceneFile operation cannot be performed because the handle is invalid. Did you already unload it?"); } } } [StaticAccessor(/*Could not decode attribute arguments.*/)] [NativeHeader("Modules/ContentLoad/Public/ContentLoadFrontend.h")] public static class ContentLoadInterface { internal static extern ThreadPriority LoadingPriority { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; } [NativeThrows] internal unsafe static ContentFile LoadContentFileAsync(ContentNamespace nameSpace, string filename, void* dependencies, int dependencyCount, JobHandle dependentFence, bool useUnsafe = false) { //The blocks IL_002b are reachable both inside and outside the pinned region starting at IL_001a. ILSpy has duplicated these blocks in order to place them both within and outside the `fixed` statement. ContentFile ret = default(ContentFile); ContentFile result; try { ManagedSpanWrapper filename2 = default(ManagedSpanWrapper); if (!StringMarshaller.TryMarshalEmptyOrNullString(filename, ref filename2)) { ReadOnlySpan readOnlySpan = filename.AsSpan(); fixed (char* ptr = readOnlySpan) { ((ManagedSpanWrapper)(ref filename2))..ctor((void*)ptr, readOnlySpan.Length); LoadContentFileAsync_Injected(ref nameSpace, ref filename2, dependencies, dependencyCount, ref dependentFence, useUnsafe, out ret); } } else { LoadContentFileAsync_Injected(ref nameSpace, ref filename2, dependencies, dependencyCount, ref dependentFence, useUnsafe, out ret); } } finally { result = ret; } return result; } [NativeThrows] internal static ContentFileUnloadHandle ContentFile_UnloadAsync(ContentFile handle) { ContentFile_UnloadAsync_Injected(ref handle, out var ret); return ret; } internal static Object ContentFile_GetObject(ContentFile handle, ulong localIdentifierInFile) { return Unmarshal.UnmarshalUnityObject(ContentFile_GetObject_Injected(ref handle, localIdentifierInFile)); } internal static Object[] ContentFile_GetObjects(ContentFile handle) { return ContentFile_GetObjects_Injected(ref handle); } internal static LoadingStatus ContentFile_GetLoadingStatus(ContentFile handle) { return ContentFile_GetLoadingStatus_Injected(ref handle); } internal static bool ContentFile_IsHandleValid(ContentFile handle) { return ContentFile_IsHandleValid_Injected(ref handle); } internal static bool WaitForLoadCompletion(ContentFile handle, int timeoutMs) { return WaitForLoadCompletion_Injected(ref handle, timeoutMs); } internal static bool WaitForJobCompletion(JobHandle handle, int timeoutMs) { return WaitForJobCompletion_Injected(ref handle, timeoutMs); } [NativeThrows] internal unsafe static ContentSceneFile LoadSceneAsync(ContentNamespace nameSpace, string filename, string sceneName, ContentSceneParameters sceneParams, ContentFile* dependencies, int dependencyCount, JobHandle dependentFence) { //The blocks IL_002b, IL_0038, IL_0046, IL_0054, IL_0059 are reachable both inside and outside the pinned region starting at IL_001a. ILSpy has duplicated these blocks in order to place them both within and outside the `fixed` statement. //The blocks IL_0059 are reachable both inside and outside the pinned region starting at IL_0046. ILSpy has duplicated these blocks in order to place them both within and outside the `fixed` statement. //The blocks IL_0059 are reachable both inside and outside the pinned region starting at IL_0046. ILSpy has duplicated these blocks in order to place them both within and outside the `fixed` statement. ContentSceneFile ret = default(ContentSceneFile); ContentSceneFile result; try { ManagedSpanWrapper val = default(ManagedSpanWrapper); ref ManagedSpanWrapper filename2; ManagedSpanWrapper sceneName2 = default(ManagedSpanWrapper); ReadOnlySpan readOnlySpan2; if (!StringMarshaller.TryMarshalEmptyOrNullString(filename, ref val)) { ReadOnlySpan readOnlySpan = filename.AsSpan(); fixed (char* ptr = readOnlySpan) { ((ManagedSpanWrapper)(ref val))..ctor((void*)ptr, readOnlySpan.Length); filename2 = ref val; if (!StringMarshaller.TryMarshalEmptyOrNullString(sceneName, ref sceneName2)) { readOnlySpan2 = sceneName.AsSpan(); fixed (char* ptr2 = readOnlySpan2) { ((ManagedSpanWrapper)(ref sceneName2))..ctor((void*)ptr2, readOnlySpan2.Length); LoadSceneAsync_Injected(ref nameSpace, ref filename2, ref sceneName2, ref sceneParams, dependencies, dependencyCount, ref dependentFence, out ret); } } else { LoadSceneAsync_Injected(ref nameSpace, ref filename2, ref sceneName2, ref sceneParams, dependencies, dependencyCount, ref dependentFence, out ret); } } } else { filename2 = ref val; if (!StringMarshaller.TryMarshalEmptyOrNullString(sceneName, ref sceneName2)) { readOnlySpan2 = sceneName.AsSpan(); fixed (char* ptr2 = readOnlySpan2) { ((ManagedSpanWrapper)(ref sceneName2))..ctor((void*)ptr2, readOnlySpan2.Length); LoadSceneAsync_Injected(ref nameSpace, ref filename2, ref sceneName2, ref sceneParams, dependencies, dependencyCount, ref dependentFence, out ret); } } else { LoadSceneAsync_Injected(ref nameSpace, ref filename2, ref sceneName2, ref sceneParams, dependencies, dependencyCount, ref dependentFence, out ret); } } } finally { result = ret; } return result; } internal static Scene ContentSceneFile_GetScene(ContentSceneFile handle) { //IL_0009: Unknown result type (might be due to invalid IL or missing references) ContentSceneFile_GetScene_Injected(ref handle, out var ret); return ret; } internal static SceneLoadingStatus ContentSceneFile_GetStatus(ContentSceneFile handle) { return ContentSceneFile_GetStatus_Injected(ref handle); } [NativeThrows] internal static void ContentSceneFile_IntegrateAtEndOfFrame(ContentSceneFile handle) { ContentSceneFile_IntegrateAtEndOfFrame_Injected(ref handle); } internal static bool ContentSceneFile_UnloadAtEndOfFrame(ContentSceneFile handle) { return ContentSceneFile_UnloadAtEndOfFrame_Injected(ref handle); } internal static bool ContentSceneFile_IsHandleValid(ContentSceneFile handle) { return ContentSceneFile_IsHandleValid_Injected(ref handle); } internal static bool ContentSceneFile_WaitForCompletion(ContentSceneFile handle, int timeoutMs) { return ContentSceneFile_WaitForCompletion_Injected(ref handle, timeoutMs); } public unsafe static ContentSceneFile LoadSceneAsync(ContentNamespace nameSpace, string filename, string sceneName, ContentSceneParameters sceneParams, NativeArray dependencies, JobHandle dependentFence = default(JobHandle)) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) return LoadSceneAsync(nameSpace, filename, sceneName, sceneParams, (ContentFile*)dependencies.m_Buffer, dependencies.Length, dependentFence); } public unsafe static ContentFile LoadContentFileAsync(ContentNamespace nameSpace, string filename, NativeArray dependencies, JobHandle dependentFence = default(JobHandle)) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0004: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) return LoadContentFileAsync(nameSpace, filename, dependencies.m_Buffer, dependencies.Length, dependentFence); } public static ContentFile[] GetContentFiles(ContentNamespace nameSpace) { BlittableArrayWrapper ret = default(BlittableArrayWrapper); ContentFile[] result; try { GetContentFiles_Injected(ref nameSpace, out ret); } finally { ContentFile[] array = default(ContentFile[]); ((BlittableArrayWrapper)(ref ret)).Unmarshal(ref array); result = array; } return result; } public static ContentSceneFile[] GetSceneFiles(ContentNamespace nameSpace) { BlittableArrayWrapper ret = default(BlittableArrayWrapper); ContentSceneFile[] result; try { GetSceneFiles_Injected(ref nameSpace, out ret); } finally { ContentSceneFile[] array = default(ContentSceneFile[]); ((BlittableArrayWrapper)(ref ret)).Unmarshal(ref array); result = array; } return result; } [MethodImpl(MethodImplOptions.InternalCall)] private unsafe static extern void LoadContentFileAsync_Injected([In] ref ContentNamespace nameSpace, ref ManagedSpanWrapper filename, void* dependencies, int dependencyCount, [In] ref JobHandle dependentFence, bool useUnsafe, out ContentFile ret); [MethodImpl(MethodImplOptions.InternalCall)] private static extern void ContentFile_UnloadAsync_Injected([In] ref ContentFile handle, out ContentFileUnloadHandle ret); [MethodImpl(MethodImplOptions.InternalCall)] private static extern IntPtr ContentFile_GetObject_Injected([In] ref ContentFile handle, ulong localIdentifierInFile); [MethodImpl(MethodImplOptions.InternalCall)] private static extern Object[] ContentFile_GetObjects_Injected([In] ref ContentFile handle); [MethodImpl(MethodImplOptions.InternalCall)] private static extern LoadingStatus ContentFile_GetLoadingStatus_Injected([In] ref ContentFile handle); [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool ContentFile_IsHandleValid_Injected([In] ref ContentFile handle); [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool WaitForLoadCompletion_Injected([In] ref ContentFile handle, int timeoutMs); [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool WaitForJobCompletion_Injected([In] ref JobHandle handle, int timeoutMs); [MethodImpl(MethodImplOptions.InternalCall)] private unsafe static extern void LoadSceneAsync_Injected([In] ref ContentNamespace nameSpace, ref ManagedSpanWrapper filename, ref ManagedSpanWrapper sceneName, [In] ref ContentSceneParameters sceneParams, ContentFile* dependencies, int dependencyCount, [In] ref JobHandle dependentFence, out ContentSceneFile ret); [MethodImpl(MethodImplOptions.InternalCall)] private static extern void ContentSceneFile_GetScene_Injected([In] ref ContentSceneFile handle, out Scene ret); [MethodImpl(MethodImplOptions.InternalCall)] private static extern SceneLoadingStatus ContentSceneFile_GetStatus_Injected([In] ref ContentSceneFile handle); [MethodImpl(MethodImplOptions.InternalCall)] private static extern void ContentSceneFile_IntegrateAtEndOfFrame_Injected([In] ref ContentSceneFile handle); [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool ContentSceneFile_UnloadAtEndOfFrame_Injected([In] ref ContentSceneFile handle); [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool ContentSceneFile_IsHandleValid_Injected([In] ref ContentSceneFile handle); [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool ContentSceneFile_WaitForCompletion_Injected([In] ref ContentSceneFile handle, int timeoutMs); [MethodImpl(MethodImplOptions.InternalCall)] private static extern void GetContentFiles_Injected([In] ref ContentNamespace nameSpace, out BlittableArrayWrapper ret); [MethodImpl(MethodImplOptions.InternalCall)] private static extern void GetSceneFiles_Injected([In] ref ContentNamespace nameSpace, out BlittableArrayWrapper ret); }