|
Java Code - Resources
[Back]
Code:
//Resources
//First you much make a new Folder in your Unity File Under Assets and Name it Resources
//Then you can use this code to find a file. Like call the object enemy
var object: GameObject = Instantiate(Resources.Load("enemy", GameObject));
//First you much make a new Folder in your Unity File Under Assets and Name it Resources
//Then you can use this code to find a file. Like call the object enemy
var object: GameObject = Instantiate(Resources.Load("enemy", GameObject));