Beispiel #1
0
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();

            SharedMeshDb db = (SharedMeshDb)target;

            if (GUILayout.Button("Add Mesh"))
            {
                db.AddMesh();
            }

            if (GUILayout.Button("Save"))
            {
                db.Save();
            }

            if (GUILayout.Button("AddPrimitives"))
            {
                db.AddPrimitives();
            }
        }
Beispiel #2
0
 protected override void OnCreate()
 {
     base.OnCreate();
     SharedMeshDb = SharedMeshDb.LoadDb();
     MeshDatas    = SharedMeshDb.LoadSharedMeshDatas();
 }