Skip to content
Snippets Groups Projects
Commit a10bd8ae authored by Tobias Schöner's avatar Tobias Schöner
Browse files

fix: building works again

parent a0fda7ac
No related branches found
No related tags found
No related merge requests found
...@@ -6,11 +6,13 @@ public abstract class ShapeGenerator : MonoBehaviour ...@@ -6,11 +6,13 @@ public abstract class ShapeGenerator : MonoBehaviour
#region UnityMethods #region UnityMethods
void Start() => GenerateShape(); void Start() => GenerateShape();
#if UNITY_EDITOR
void OnValidate() void OnValidate()
{ {
// prevent 'SendMessage cannot be called during Awake, CheckConsistency, or OnValidate' warning // prevent 'SendMessage cannot be called during Awake, CheckConsistency, or OnValidate' warning
UnityEditor.EditorApplication.delayCall += GenerateShape; UnityEditor.EditorApplication.delayCall += GenerateShape;
} }
#endif
#endregion UnityMethods #endregion UnityMethods
protected abstract void GenerateShape(); protected abstract void GenerateShape();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment