How are loading of objects at the start

Hi all. I’m interested in one question. Let’s say I have created a cube. How can I save it in the directory, and how at the start of the game, it loaded into the scene?

you will need to save that cube as a prefab. then make a script.

var cube : GameObject;

function Start(){

   Instantiate(cube, transform.position, transform.rotation);

}

Go in the inspector window and drag your cube prefab to the cube gameobject.
Attach the script to fx. the main camera. this is ofc. just an example.

Thank you!