using System;
using UnityEngine;
namespace EditorAttributes
{
///
/// Attribute to hide the inherited field in child classes
///
public class HideInChildrenAttribute : PropertyAttribute
{
public Type[] ChildTypes { get; private set; }
///
/// Attribute to hide the inherited field in child classes
///
/// The field will be hidden only in these child classes
public HideInChildrenAttribute(params Type[] childTypes)
#if UNITY_2023_3_OR_NEWER
: base(true)
#endif
{
ChildTypes = childTypes;
}
}
}