diff --git a/src/Extensions/EcsEntityConnect.cs b/src/Extensions/EcsEntityConnect.cs index ddd2041..e7cff20 100644 --- a/src/Extensions/EcsEntityConnect.cs +++ b/src/Extensions/EcsEntityConnect.cs @@ -83,7 +83,9 @@ namespace DCFApixels.DragonECS namespace Editors { + using System.Collections.Generic; using UnityEditor; + [CustomEditor(typeof(EcsEntityConnect))] public class EcsEntityEditor : Editor { @@ -136,6 +138,13 @@ namespace DCFApixels.DragonECS EditorUtility.SetDirty(item); } } + + if (Target.IsAlive) + { + List comps = new List(); + Target.World.GetComponents(Target.Entity.ID, comps); + GUILayout.TextArea(string.Join("\r\n", comps)); + } } } } diff --git a/src/Utils/DebugColorAttributeExt.cs b/src/Utils/DebugColorAttributeExt.cs index c9d8ad5..86de672 100644 --- a/src/Utils/DebugColorAttributeExt.cs +++ b/src/Utils/DebugColorAttributeExt.cs @@ -6,7 +6,7 @@ namespace DCFApixels.DragonECS { public static Color GetUnityColor(this DebugColorAttribute self) { - return new Color(self.rn, self.gn, self.bn); + return new Color(self.r / 255f, self.g / 255f, self.b / 255f); } public static Color32 GetUnityColor32(this DebugColorAttribute self) {