Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Created December 16, 2015 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubaki/3620020238091697fd64 to your computer and use it in GitHub Desktop.
Save tsubaki/3620020238091697fd64 to your computer and use it in GitHub Desktop.
シーンを読む
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class Load : MonoBehaviour {
void Start ()
{
var stageAB = AssetBundle.LoadFromFile (Application.streamingAssetsPath + "/stage");
SceneManager.LoadScene ("stage", LoadSceneMode.Additive);
stageAB.Unload (false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment