Skip to content

Commit 5d79b16

Browse files
committed
fixed save system build - unity editor namespace wrongly used
1 parent c76b86e commit 5d79b16

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

Assets/Kekser/SaveSystem/Editor/CheckForSavableEditor.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
#if UNITY_EDITOR
2+
using System;
23
using System.Collections.Generic;
34
using Kekser.SaveSystem.Attributes;
45
using UnityEditor;
@@ -73,4 +74,5 @@ private static void CheckForSavables()
7374
}
7475
}
7576
}
76-
}
77+
}
78+
#endif

Assets/Kekser/SaveSystem/Editor/GuidReadablePropertyDrawer.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using UnityEditor;
1+
#if UNITY_EDITOR
2+
using UnityEditor;
23
using UnityEngine;
34

45
namespace Kekser.SaveSystem
@@ -31,4 +32,5 @@ public override float GetPropertyHeight(SerializedProperty property, GUIContent
3132
return base.GetPropertyHeight(property, label);
3233
}
3334
}
34-
}
35+
}
36+
#endif

Assets/Kekser/SaveSystem/Editor/PrefabRegistryEditor.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Collections.Generic;
1+
#if UNITY_EDITOR
2+
using System.Collections.Generic;
23
using UnityEditor;
34
using UnityEngine;
45

@@ -51,4 +52,5 @@ private static Savable[] GetPrefabs()
5152
return prefabs.ToArray();
5253
}
5354
}
54-
}
55+
}
56+
#endif

Assets/Kekser/SaveSystem/Editor/SaveAnalyseWindow.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Collections.Generic;
1+
#if UNITY_EDITOR
2+
using System.Collections.Generic;
23
using System.IO;
34
using Kekser.SaveSystem.Data;
45
using UnityEditor;
@@ -100,4 +101,5 @@ private void RenderDataElement(DataElement dataElement)
100101
EditorGUILayout.LabelField(System.Text.Encoding.UTF8.GetString(buffer.Data));
101102
}
102103
}
103-
}
104+
}
105+
#endif

Assets/Kekser/SaveSystem/Editor/SaveAttributeWindow.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
#if UNITY_EDITOR
2+
using System;
23
using Kekser.SaveSystem.Attributes;
34
using UnityEditor;
45
using UnityEngine;
@@ -55,4 +56,5 @@ private void OnGUI()
5556
EditorGUILayout.EndScrollView();
5657
}
5758
}
58-
}
59+
}
60+
#endif

0 commit comments

Comments
 (0)