我目前正在开发一个应用程序,其中我需要使用脚本直接从Firebase加载3D对象(在运行时)。是否有可能做到这一点?我目前正在从Resources文件夹加载我的3D脚本,代码为:
object1 = (GameObject)Resources.Load ("tabouret_2") as GameObject;
var myObject = Instantiate (object1);
myObject.transform.SetParent (parent.transform);
myObject.transform.position = new Vector3 (0, 0, 0);
myObject.transform.localScale = new Vector3 (100f, 100f, 100f);
myObject.AddComponent<BoxCollider> ();
MoveObject uhm = myObject.AddComponent<MoveObject>() as MoveObject;
myObject.gameObject.SetActive (true);
从firebase检索3D是否也一样?
谢谢!