public override void OnInspectorGUI() { base.OnInspectorGUI(); if (!Application.isPlaying) { return; } TestRunner testRunner = target as TestRunner; if (testRunner == null) { return; } IAddressableLoader loader = null; if (GUILayout.Button("Load GameObject")) { loader.Load <GameObject>( "Assets/AddressableLoadManagement/Tests/Loadable/TestAddressablePrefab.prefab", "TestGroup", testRunner.OnGameObjectLoaded); } if (GUILayout.Button("Unload GameObject")) { testRunner.PopTopGameObject().ReleaseAddressable(); } if (GUILayout.Button("Load ScriptableObject")) { loader.Load <TestScriptableObject>( "Assets/AddressableLoadManagement/Tests/Loadable/TestSO.asset", "TestGroup", testRunner.OnSOLoaded); } if (GUILayout.Button("Unload ScriptableObject")) { testRunner.PopTopSO().ReleaseAddressable(); } }
public async Task LoadUICamera() { IAddressableLoader uiCameraLoader = null; uiCameraLoader.Load <GameObject>(UI_CAMERA_PATH, UI_CAMERA_GROUP, OnUICameraLoaded); while (_layerRoot == null) { await Task.Yield(); } }
public async Task LoadDeviceFrame() { IAddressableLoader deviceFrameLoader = null; deviceFrameLoader.Load <DeviceFrame>(DEVICE_FRAME_PATH, DEVICE_FRAME_GROUP, OnDeviceFrameLoaded); while (_layerPrefab == null) { await Task.Yield(); } }