Create Plan from script C#

Hi

I would create a plan with c# script. But it’s doesn’t appear with play mode.

I made this :

void Start () {
	

		

		GameObject plane = new GameObject ("Plane");
		plane.SetActive (true);
		GameObject cube01 = GameObject.CreatePrimitive (PrimitiveType.Cube);
		cube01.transform.position = new  Vector3 (10, 1, 0);


	}

I try with primitiveType like this :

	GameObject plane = GameObject.CreatePrimitive (PrimitiveType.Plane);

have you any Idea ?

I resolved it.

I give the solution :

Create an empty GameObject abd link the scrpit to the GameObject