Created
December 16, 2015 01:57
-
-
Save tsubaki/3620020238091697fd64 to your computer and use it in GitHub Desktop.
シーンを読む
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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