From 44cf98b27fa101a1022dc5e03a4b8a6f248dd243 Mon Sep 17 00:00:00 2001 From: Josh Dassinger Date: Fri, 6 Feb 2026 14:05:28 -0600 Subject: [PATCH] Added Interactable to UnityEngine.UI.Button and UnityEngine.UI.InputField --- CommunityEntity.UI.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CommunityEntity.UI.cs b/CommunityEntity.UI.cs index b49933c..fb0eab1 100644 --- a/CommunityEntity.UI.cs +++ b/CommunityEntity.UI.cs @@ -1,4 +1,4 @@ -using UnityEngine; +using UnityEngine; using UnityEngine.UI; using System; using System.Collections; @@ -313,7 +313,8 @@ T GetOrAddComponent() where T : Component { var c = GetOrAddComponent(); HandleEnableState( obj, c ); - + if (ShouldUpdateField("interactable")) + c.interactable = obj.GetBoolean( "interactable", true ); if ( obj.ContainsKey( "command" ) ) { var cmd = obj.GetString( "command" ); @@ -399,6 +400,8 @@ T GetOrAddComponent() where T : Component var c = GetOrAddComponent(); HandleEnableState( obj, c ); c.textComponent = t; + if (ShouldUpdateField("interactable")) + c.interactable = obj.GetBoolean( "interactable", true ); if ( ShouldUpdateField( "characterLimit" ) ) c.characterLimit = obj.GetInt( "characterLimit", allowUpdate ? c.characterLimit : 0 );