mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-18 01:54:35 +08:00
fix & add AddComponentMenu
This commit is contained in:
parent
6e479c40cf
commit
d08f5c855a
@ -3,6 +3,7 @@ using UnityEngine;
|
|||||||
namespace DCFApixels.DragonECS
|
namespace DCFApixels.DragonECS
|
||||||
{
|
{
|
||||||
[DisallowMultipleComponent]
|
[DisallowMultipleComponent]
|
||||||
|
[AddComponentMenu(EcsConsts.FRAMEWORK_NAME + "/" + nameof(AutoEntityCreator), 30)]
|
||||||
public class AutoEntityCreator : MonoBehaviour
|
public class AutoEntityCreator : MonoBehaviour
|
||||||
{
|
{
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
|
@ -51,6 +51,7 @@ namespace DCFApixels.DragonECS
|
|||||||
}
|
}
|
||||||
|
|
||||||
[DisallowMultipleComponent]
|
[DisallowMultipleComponent]
|
||||||
|
[AddComponentMenu(EcsConsts.FRAMEWORK_NAME + "/" + nameof(EcsEntityConnect), 30)]
|
||||||
public class EcsEntityConnect : MonoBehaviour
|
public class EcsEntityConnect : MonoBehaviour
|
||||||
{
|
{
|
||||||
private entlong _entity;
|
private entlong _entity;
|
||||||
|
@ -95,7 +95,7 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
|||||||
|
|
||||||
Rect rectView = new Rect(0f, 0f, _nameCellSize.x + _cellsize.x * _processList.Count, _nameCellSize.y + _cellsize.y * _systemsList.Length);
|
Rect rectView = new Rect(0f, 0f, _nameCellSize.x + _cellsize.x * _processList.Count, _nameCellSize.y + _cellsize.y * _systemsList.Length);
|
||||||
EditorGUI.DrawRect(rect, new Color(0, 0, 0, 0.6f));
|
EditorGUI.DrawRect(rect, new Color(0, 0, 0, 0.6f));
|
||||||
GUI.Button(rect, "", EditorStyles.helpBox);
|
//GUI.Button(rect, "", EditorStyles.helpBox);
|
||||||
|
|
||||||
_position = GUI.BeginScrollView(rect, _position, rectView, true, true);
|
_position = GUI.BeginScrollView(rect, _position, rectView, true, true);
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@ using UnityEngine;
|
|||||||
namespace DCFApixels.DragonECS
|
namespace DCFApixels.DragonECS
|
||||||
{
|
{
|
||||||
[DisallowMultipleComponent]
|
[DisallowMultipleComponent]
|
||||||
|
[AddComponentMenu(EcsConsts.FRAMEWORK_NAME + "/" + nameof(MonoEntityTemplate), 30)]
|
||||||
public class MonoEntityTemplate : MonoBehaviour, ITemplateInternal
|
public class MonoEntityTemplate : MonoBehaviour, ITemplateInternal
|
||||||
{
|
{
|
||||||
[SerializeReference]
|
[SerializeReference]
|
||||||
|
Loading…
Reference in New Issue
Block a user