diff --git a/ExternalApp/Genesis.Unity.Factory.Plugin/CodeGenerators/ScriptableFactoryCodeGenerator.cs b/ExternalApp/Genesis.Unity.Factory.Plugin/CodeGenerators/ScriptableFactoryCodeGenerator.cs index 2c7a7c3..9cbd8cc 100644 --- a/ExternalApp/Genesis.Unity.Factory.Plugin/CodeGenerators/ScriptableFactoryCodeGenerator.cs +++ b/ExternalApp/Genesis.Unity.Factory.Plugin/CodeGenerators/ScriptableFactoryCodeGenerator.cs @@ -105,7 +105,7 @@ public CodeGenFile CreateSymbolFactoryCodeGenFile(SymbolFactoryData data) using System.Collections.Generic; using UnityEngine; -#if ODIN_INSPECTOR +#if ODIN_INSPECTOR && UNITY_EDITOR using System.Linq; using Sirenix.Utilities.Editor; using Sirenix.OdinInspector; @@ -119,20 +119,20 @@ public sealed partial class ${TypeName} : ScriptableObject [Serializable] private class Mapping { - #if ODIN_INSPECTOR + #if ODIN_INSPECTOR && UNITY_EDITOR [FoldoutGroup(""@key"")] #endif #pragma warning disable 0649 public ${KeyFullType} key; - #if ODIN_INSPECTOR + #if ODIN_INSPECTOR && UNITY_EDITOR [FoldoutGroup(""@key"")] #endif public ${ValueFullType} value; #pragma warning restore 0649 } - #if ODIN_INSPECTOR + #if ODIN_INSPECTOR && UNITY_EDITOR [ValidateInput(nameof(EnsureAllKeyValuesAreUnique), ""Not all Key values are unique, please ensure each one is unique."")] [ListDrawerSettings( @@ -206,7 +206,7 @@ public bool TryGetValue(${KeyFullType} key, out ${ValueFullType} value) return true; } - #if ODIN_INSPECTOR + #if ODIN_INSPECTOR && UNITY_EDITOR private bool EnsureAllKeyValuesAreUnique(List values) { return values.GroupBy(x => x.key).All(x => x.Count() < 2); @@ -301,8 +301,7 @@ private class Mapping #if ODIN_INSPECTOR [ListDrawerSettings( Expanded = true, - ShowIndexLabels = false - )] + ShowIndexLabels = false)] #endif #pragma warning disable 0649 [SerializeField]