diff --git a/Sane Eric's UI/Scriptable Variables/FloatVariableInput.cs b/Sane Eric's UI/Scriptable Variables/FloatVariableInput.cs index 53e01124642b528794e540b0dd39a2d06dc55dd9..cea8441a5e3bfc9839097aff223aff930c82437a 100644 --- a/Sane Eric's UI/Scriptable Variables/FloatVariableInput.cs +++ b/Sane Eric's UI/Scriptable Variables/FloatVariableInput.cs @@ -1,7 +1,7 @@ using System; using UnityEngine; using UnityEngine.Events; -using UnityEngine.UI; +using TMPro; using Shared.ScriptableVariables; namespace Shared.SEUI { @@ -12,7 +12,7 @@ namespace Shared.SEUI { public FloatVariable variable; [Tooltip("The input UI to edit the variable's value with")] - public InputField input; + public TMP_InputField input; // Temporary callback to bridge value changes in the UI and the variable private UnityAction<string> valueConverter; @@ -20,7 +20,7 @@ namespace Shared.SEUI { //--------------------------------------------------------------------------- void Start() { // Make sure the input handles the right content type - input.contentType = InputField.ContentType.DecimalNumber; + input.contentType = TMP_InputField.ContentType.DecimalNumber; } //--------------------------------------------------------------------------- diff --git a/Sane Eric's UI/Scriptable Variables/IntVariableInput.cs b/Sane Eric's UI/Scriptable Variables/IntVariableInput.cs index 90f579fc31adeb0f0ee43eade8d04d26a732c746..6ba9330f4e3adff8b5da71d31725766705e4cc7d 100644 --- a/Sane Eric's UI/Scriptable Variables/IntVariableInput.cs +++ b/Sane Eric's UI/Scriptable Variables/IntVariableInput.cs @@ -1,7 +1,7 @@ using System; using UnityEngine; using UnityEngine.Events; -using UnityEngine.UI; +using TMPro; using Shared.ScriptableVariables; namespace Shared.SEUI { @@ -12,7 +12,7 @@ namespace Shared.SEUI { public IntVariable variable; [Tooltip("The input UI to edit the variable's value with")] - public InputField input; + public TMP_InputField input; // Temporary callback to bridge value changes in the UI and the variable private UnityAction<string> valueConverter; @@ -20,7 +20,7 @@ namespace Shared.SEUI { //--------------------------------------------------------------------------- void Start() { // Make sure the input handles the right content type - input.contentType = InputField.ContentType.IntegerNumber; + input.contentType = TMP_InputField.ContentType.IntegerNumber; } //--------------------------------------------------------------------------- diff --git a/Sane Eric's UI/Shared.SEUI.asmdef b/Sane Eric's UI/Shared.SEUI.asmdef index 1f7f1bdcb64160865cab9fc8167d56c309fa2e2b..19a662317953bcd53b1f3865577fcfa4c8dbc8d7 100644 --- a/Sane Eric's UI/Shared.SEUI.asmdef +++ b/Sane Eric's UI/Shared.SEUI.asmdef @@ -4,7 +4,7 @@ "GUID:6735fe1fe1dbd994a96eb9d888b81400", "Unity.TextMeshPro" ], - "optionalUnityReferences": [ "TestAssemblies" ], + "optionalUnityReferences": [], "includePlatforms": [], "excludePlatforms": [], "allowUnsafeCode": false,