I get a crash on iOS build with IL2CPP when try to Instantiate(gameObject)
P.S. gameObject was preloaded from assetbundle
What am I doing wrong? )
I get a crash on iOS build with IL2CPP when try to Instantiate(gameObject)
P.S. gameObject was preloaded from assetbundle
What am I doing wrong? )
I figured out that bug can be workaround.
Something strange happend with Instantiate(gameObject).
I use Instantiate(gameObject) to clone objects loaded from assetbundles.
If I load prefab from assetbundle without script (just GO, material and mesh), and attach script with Instantiate(this) code in runtime (via AddComponent), then crash happens.
BUT, If i attach script to prefab before building assetbundles, and load prefab from assetbundle with script have been already attached, the instantiate(this) works fine.
I hope it may be useful.
P.S. The bug submitted via link FogBugz