Skip to content

Commit 750aa00

Browse files
committed
Wasm settings saving properly
1 parent 6d5d122 commit 750aa00

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

EcsactWasm/Editor/EcsactWasmRuntimeSettingsEditor.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ static EcsactWasmRuntimeSettingsEditor() {
2727
public override void OnInspectorGUI() {
2828
var settings = target as EcsactWasmRuntimeSettings;
2929
if(settings == null) return;
30+
31+
EditorGUI.BeginChangeCheck();
3032

3133
if(systemLikeTypes == null) {
3234
systemLikeTypes = Ecsact.Util.GetAllSystemLikeTypes().ToList();
@@ -114,6 +116,10 @@ public override void OnInspectorGUI() {
114116
EditorGUILayout.EndHorizontal();
115117
}
116118

119+
if (EditorGUI.EndChangeCheck()) {
120+
EditorUtility.SetDirty(settings);
121+
}
122+
117123
serializedObject.ApplyModifiedProperties();
118124
}
119125

0 commit comments

Comments
 (0)