using System;
namespace UnityEngine.Localization.PropertyVariants
{
///
/// Indicates that the class is used to Track Property Variants for a particular Type.
///
///
/// This shows how to create a custom to support the component.
///
///
[AttributeUsage(AttributeTargets.Class)]
public class CustomTrackedObjectAttribute : Attribute
{
internal Type ObjectType { get; }
internal bool SupportsInheritedTypes { get; }
///
/// Creates a new instance of a CustomTrackedObjectAttribute.
///
/// The Type of Object that this Tracked Object supports.
/// Does this class also support types that inherit from ?
public CustomTrackedObjectAttribute(Type type, bool supportsInheritedTypes)
{
ObjectType = type;
SupportsInheritedTypes = supportsInheritedTypes;
}
}
}