projectEli/Assets/NeoFPS/Core/Utilities/NeoPrefabFieldAttribute.cs

37 lines
660 B
C#
Raw Normal View History

2022-11-07 01:28:33 +00:00
using System;
using UnityEngine;
namespace NeoFPS
{
public class NeoPrefabFieldAttribute : PropertyAttribute
{
public Type[] filterTypes
{
get;
private set;
}
public bool required
{
get;
set;
}
public NeoPrefabFieldAttribute()
{
filterTypes = null;
}
public NeoPrefabFieldAttribute(Type filterType)
{
filterTypes = new Type[] { filterType };
}
public NeoPrefabFieldAttribute(Type[] filterTypes)
{
this.filterTypes = filterTypes;
}
}
}