Plane created on runtime doesn't show on the Android device

Hi Everyone,

I try to created a plane on runtime with the below codes:

GameObject plane = GameObject.CreatePrimitive(PrimitiveType.Plane);
plane.transform.position = new Vector3(0, 0, 0);
plane.transform.localScale = new Vector3(15, 15, 15);
plane.transform.renderer.material.color =;

It work well on the preview when i hit the play button but when i build and run it on an Android device, no plane is there!

Has anyone came across this problem or know the solution to this problem, kindly share with me.

Thanks in advance!

Hmm, I haven’t had any problems with this. What Android device are you using and what API Level is it currently sitting at?

One thing I may suggest is to

transform.lookat( plane.transform, Vector3.up );

on your camera