mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-18 01:54:35 +08:00
update
This commit is contained in:
parent
ac61817307
commit
45cbf45d13
@ -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<object> comps = new List<object>();
|
||||
Target.World.GetComponents(Target.Entity.ID, comps);
|
||||
GUILayout.TextArea(string.Join("\r\n", comps));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user