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(); } }
protected override void OnCreate() { base.OnCreate(); SharedMeshDb = SharedMeshDb.LoadDb(); MeshDatas = SharedMeshDb.LoadSharedMeshDatas(); }