From 13d1e21586d70c650b96f2c280739fc801ac3f18 Mon Sep 17 00:00:00 2001 From: Josh Dassinger Date: Wed, 1 Jul 2026 11:40:54 -0500 Subject: [PATCH] Added the ability to include DestroyOnly requests in AddUI JSON. --- CommunityEntity.UI.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CommunityEntity.UI.cs b/CommunityEntity.UI.cs index 09ffd54..6a0df8a 100644 --- a/CommunityEntity.UI.cs +++ b/CommunityEntity.UI.cs @@ -88,6 +88,11 @@ public void AddUI( RPCMessage msg ) if ( json.ContainsKey( "destroyUi" ) ) { DestroyPanel( json.GetString( "destroyUi", "AddUI CreatedPanel" ) ); + if(json.GetBoolean("destroyOnly", false)) + { + //This request is only to destroy the panel. Continue to the next element. + continue; + } } var parentPanel = FindPanel( json.GetString( "parent", "Overlay" ) ); var gameObjectName = json.GetString( "name", "AddUI CreatedPanel" );