unity3d create gameobject instances code example
Example 1: Unity C# instantiate prefab
Instantiate(myPrefab, new Vector3(0, 0, 0), Quaternion.identity);
Example 2: unity create gameobject
// Use 'new GameObject' to create a new GameObject in the current scene
SpawnedObject = new GameObject("Created GameObject");