Skip to content

Instantly share code, notes, and snippets.

@anchan828
Created October 2, 2013 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anchan828/0b4f811b293967937c3d to your computer and use it in GitHub Desktop.
Save anchan828/0b4f811b293967937c3d to your computer and use it in GitHub Desktop.
using UnityEditor;
using UnityEngine;
public class Question10
{
[MenuItem("Question10/CreateGameObject")]
static void Create()
{
GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment