-
-
Save anchan828/4c18205a5e4a7fa6e316 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEngine; | |
public class Question10 | |
{ | |
[MenuItem("Question10/CreateGameObject")] | |
static void Create() | |
{ | |
GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube); | |
Undo.RegisterCreatedObjectUndo(cube, "Created"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment