unity create gameobject

C#
// Use 'new GameObject' to create a new GameObject in the current scene
SpawnedObject = new GameObject("Created GameObject");
Source

Also in C#: