mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-17 17:34:34 +08:00
update
This commit is contained in:
parent
b782851697
commit
ea19222134
@ -3,7 +3,6 @@ using System.Linq;
|
|||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using static UnityEngine.GraphicsBuffer;
|
|
||||||
|
|
||||||
namespace DCFApixels.DragonECS
|
namespace DCFApixels.DragonECS
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,7 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
|||||||
{
|
{
|
||||||
[CustomEditor(typeof(AutoEntityCreator))]
|
[CustomEditor(typeof(AutoEntityCreator))]
|
||||||
[CanEditMultipleObjects]
|
[CanEditMultipleObjects]
|
||||||
public class AutoEntityCreatorEditor : Editor
|
internal class AutoEntityCreatorEditor : Editor
|
||||||
{
|
{
|
||||||
private AutoEntityCreator Target => (AutoEntityCreator)target;
|
private AutoEntityCreator Target => (AutoEntityCreator)target;
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
using Codice.CM.Client.Differences;
|
|
||||||
using DCFApixels.DragonECS.Unity.Internal;
|
using DCFApixels.DragonECS.Unity.Internal;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
@ -8,7 +7,7 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
|||||||
{
|
{
|
||||||
[CustomEditor(typeof(EcsEntityConnect))]
|
[CustomEditor(typeof(EcsEntityConnect))]
|
||||||
[CanEditMultipleObjects]
|
[CanEditMultipleObjects]
|
||||||
public class EcsEntityConnectEditor : Editor
|
internal class EcsEntityConnectEditor : Editor
|
||||||
{
|
{
|
||||||
private bool _isInit = false;
|
private bool _isInit = false;
|
||||||
private EcsEntityConnect Target => (EcsEntityConnect)target;
|
private EcsEntityConnect Target => (EcsEntityConnect)target;
|
||||||
@ -75,7 +74,7 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
|||||||
target.AutosetCascade_Editor();
|
target.AutosetCascade_Editor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buttonRect = RectUtility.Move(buttonRect , - height, 0);
|
buttonRect = RectUtility.Move(buttonRect, -height, 0);
|
||||||
if (EcsGUI.AutosetButton(buttonRect))
|
if (EcsGUI.AutosetButton(buttonRect))
|
||||||
{
|
{
|
||||||
foreach (var target in targets)
|
foreach (var target in targets)
|
||||||
|
@ -6,7 +6,7 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
|||||||
{
|
{
|
||||||
[CustomEditor(typeof(EcsWorldProviderBase), true)]
|
[CustomEditor(typeof(EcsWorldProviderBase), true)]
|
||||||
[CanEditMultipleObjects]
|
[CanEditMultipleObjects]
|
||||||
public class EcsWorldProviderBaseEditor : Editor
|
internal class EcsWorldProviderBaseEditor : Editor
|
||||||
{
|
{
|
||||||
private EcsWorldProviderBase Target => (EcsWorldProviderBase)target;
|
private EcsWorldProviderBase Target => (EcsWorldProviderBase)target;
|
||||||
|
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
#if UNITY_EDITOR
|
|
||||||
using System;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace DCFApixels.DragonECS.Unity.Editors
|
|
||||||
{
|
|
||||||
[Serializable]
|
|
||||||
internal class UnityObjEditorWrapper : WrapperBase<UnityObjEditorWrapper>
|
|
||||||
{
|
|
||||||
[SerializeField]
|
|
||||||
public UnityEngine.Object data;
|
|
||||||
|
|
||||||
public override object Data
|
|
||||||
{
|
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
||||||
get { return data; }
|
|
||||||
}
|
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
||||||
public static UnityObjEditorWrapper Take(UnityEngine.Object data)
|
|
||||||
{
|
|
||||||
var result = Take();
|
|
||||||
result.data = data;
|
|
||||||
result.SO.Update();
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 7060bf63683c82a4a8a6cf54255c4139
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
Loading…
Reference in New Issue
Block a user