using System.Collections; using System.Collections.Generic; using UnityEngine; public class AssetBundleLoad : MonoBehaviour { void Start () { AssetBundle ab = AssetBundle.LoadFromFile(Application.dataPath + "/StreamingAssets/player1.ab"); GameObject player = ab.LoadAsset<GameObject>("Necromancer"); GameObject.Instantiate<GameObject>(player, Vector3.zero, Quaternion.identity); } }
Unity加载AB资源
猜你喜欢
转载自www.cnblogs.com/91-JiaoTeacher/p/10705556.html
今日推荐
周排行