18-12-2019, 02:00 PM
(18-12-2019, 12:57 PM)Pingosso Wrote: I surely make a mistake but I don't see it...
My script that make unity crashed:
Object prefab = BundleManager.Get3DPrefab("Obi Solver");
ObiSolver SolverFR = GameObject.Instantiate(prefab) as ObiSolver;
with Get3DPrefab:
public static GameObject Get3DPrefab(string name)
{
GameObject go = Instance._bundle3D.LoadAsset(name, typeof(GameObject)) as GameObject;
if (go == null)
Debug.LogError("Cannot load or find asset " + name + " in 3D bundle");
return go;
}
And the prefab I tried to instantiate:
Thanks a lot Jose
Ok I find the problem comes from the updater which causes an infinite loop when instantiate, you're right