DragonECS-Unity/src/Editor/SOWrappers/RefEditorWrapper.cs

25 lines
524 B
C#
Raw Normal View History

2024-03-03 22:46:26 +08:00
#if UNITY_EDITOR
using System;
using UnityEngine;
namespace DCFApixels.DragonECS.Unity.Editors
{
[Serializable]
internal class RefEditorWrapper : WrapperBase<RefEditorWrapper>
{
[SerializeReference]
public object data;
public override object Data
{
get { return data; }
}
public static RefEditorWrapper Take(object data)
{
var result = Take();
result.data = data;
return result;
}
}
}
#endif