From 85d36ef52bb2b45f824f7cc2bdaf6feeb9282a55 Mon Sep 17 00:00:00 2001 From: Josh Dassinger Date: Fri, 6 Feb 2026 14:21:25 -0600 Subject: [PATCH] Added Shadow Component --- CommunityEntity.UI.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/CommunityEntity.UI.cs b/CommunityEntity.UI.cs index b49933c..ed24866 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; @@ -380,6 +380,18 @@ T GetOrAddComponent() where T : Component c.useGraphicAlpha = obj.ContainsKey( "useGraphicAlpha" ); break; } + + case "UnityEngine.UI.Shadow": + { + var c = GetOrAddComponent(); + HandleEnableState( obj, c ); + if ( ShouldUpdateField( "color" ) ) + c.effectColor = ColorEx.Parse( obj.GetString( "color", "0 0 0 0.5" ) ); + if ( ShouldUpdateField( "distance" ) ) + c.effectDistance = Vector2Ex.Parse( obj.GetString( "distance", "1.0 -1.0" ) ); + c.useGraphicAlpha = obj.ContainsKey( "useGraphicAlpha" ); + break; + } case "UnityEngine.UI.InputField": {