This commit is contained in:
Mikhail 2026-04-14 17:20:08 +08:00
parent fe3163ab3d
commit 8f7b8e0c2f
2 changed files with 4 additions and 4 deletions

View File

@ -204,7 +204,7 @@ namespace DCFApixels.DragonECS.Unity.Editors
Type = type;
IsUnique = false;
if(type.TryGetAttribute<DragonMemnberWrapperAttribute>(out var atr))
if(type.TryGetAttribute<DragonMemberWrapperAttribute>(out var atr))
{
WrappedFieldName = atr.WrappedFieldName;
var field = type.GetField(atr.WrappedFieldName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);

View File

@ -13,10 +13,10 @@ using UnityEngine;
namespace DCFApixels.DragonECS.Unity
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = true, AllowMultiple = false)]
public sealed class DragonMemnberWrapperAttribute : Attribute
public sealed class DragonMemberWrapperAttribute : Attribute
{
public string WrappedFieldName;
public DragonMemnberWrapperAttribute(string wrappedFieldName)
public DragonMemberWrapperAttribute(string wrappedFieldName)
{
WrappedFieldName = wrappedFieldName;
}
@ -49,7 +49,7 @@ namespace DCFApixels.DragonECS
[Serializable]
[MetaProxy(typeof(ComponentTemplateMetaProxy))]
[DragonMemnberWrapper("component")]
[DragonMemberWrapper("component")]
public abstract class ComponentTemplateBase : IComponentTemplate
{
#region Properties