Firstborn/Library/PackageCache/com.unity.addressables@1.19.19/Samples~/CustomBuildAndPlaymodeScripts/LoadSceneForCustomBuild.cs

15 lines
331 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AddressableAssets;
public class LoadSceneForCustomBuild : MonoBehaviour
{
public string SceneKey;
// Start is called before the first frame update
void Start()
{
Addressables.LoadSceneAsync(SceneKey);
}
}