We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89d8dd8 commit 2678526Copy full SHA for 2678526
Runtime/Code/VoxelWorld/Editor/VoxelWorldEditor.cs
@@ -332,7 +332,14 @@ public override void OnInspectorGUI() {
332
333
if (world.voxelWorldFile != null) {
334
if (GUILayout.Button("Load")) {
335
- Load(world);
+ if (world.hasUnsavedChanges) {
336
+ if (EditorUtility.DisplayDialog("Discarding Changes",
337
+ "Are you sure you want to discard unsaved changes to the Voxel World?", "Discard", "Cancel")) {
338
+ Load(world);
339
+ }
340
+ } else {
341
342
343
}
344
345
if (world.chunks.Count > 0) {
0 commit comments