We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab8b2ca commit 18d5124Copy full SHA for 18d5124
Assets/Kekser/SaveSystem/Savable.cs
@@ -16,6 +16,14 @@ public sealed class Savable : MonoBehaviour
16
public Guid Guid => string.IsNullOrEmpty(_guid) ? Guid.NewGuid() : Guid.Parse(_guid);
17
public Guid PrefabGuid => string.IsNullOrEmpty(_prefabGuid) ? Guid.NewGuid() : Guid.Parse(_prefabGuid);
18
19
+ private void Reset()
20
+ {
21
+ _guid = "";
22
+ _prefabGuid = "";
23
+
24
+ OnValidate();
25
+ }
26
27
private void OnValidate()
28
{
29
#if UNITY_EDITOR
0 commit comments