Fix missing assemblies, add ifdef for UNITY_EDITOR

Editor scripts require ifdef UNITY_EDITOR so as to not be compiled
This commit is contained in:
Daniel Lovell
2024-09-29 23:45:59 -07:00
parent 32f3b0aa7a
commit f701e34863
5 changed files with 19 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ using UnityEditor;
using System;
using System.Collections.Generic;
#if UNITY_EDITOR
public class GenerateCone : EditorWindow {
private int sides = 16;
private float baseRadius = 1f;
@@ -139,4 +140,5 @@ public class GenerateCone : EditorWindow {
}
return sum / vertices.Count;
}
}
}
#endif