Instantly share code, notes, and snippets.

Embed
What would you like to do?
AssetBundleからシーンを読む
using UnityEngine;
using System.Collections;
public class LoadABScene : MonoBehaviour {
[SerializeField] string sceneName = "Demo";
[SerializeField] string assetBundleName = "demo";
IEnumerator Start()
{
WWW www = new WWW("file://" + Application.streamingAssetsPath + "/" + assetBundleName);
yield return www;
AssetBundle bundle = www.assetBundle;
Application.LoadLevel (sceneName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment