- Home /
Question by
karthees · Oct 08, 2014 at 11:31 AM ·
androidassetbundleplaymode
3D model is not showing in Android
I'm using AssetBundle for download the 3D model from server and displaying in the screen. When i using the unity playmode then the 3D model is showing but when i run the project in android mobile device it's not working and the cube is not showing.
mBundleInstance = Instantiate (bundle.mainAsset) as GameObject;
mBundleInstance.transform.parent = imageTarget.transform;
mBundleInstance.transform.localScale = new Vector3(0.3f, 0.3f, 0.3f);
mBundleInstance.transform.localPosition = new Vector3(0.0f, 0.15f, 0.0f);
mBundleInstance.transform.gameObject.SetActive(true);
Comment
Answer by Redeemer86 · Oct 08, 2014 at 12:13 PM
Probably your cube is going off the screen due to android screen resolution and relative positioning of your cube, thus it's not being rendered Try repositioning your gameObject to test if it's due to positioning.
Red.
Please check my code what i'm using for display the cube..