using System;
namespace UnityEditor.Recorder
{
///
/// This attribute allows binding a Recorder Settings instance with a Recorder.
///
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class RecorderSettingsAttribute : Attribute
{
internal readonly Type recorderType;
internal readonly string displayName;
internal readonly string iconName;
///
/// Constructor for the attribute.
///
/// The type of Recorder that uses this Recorder Settings instance.
/// The Recorder's display name.
public RecorderSettingsAttribute(Type recorderType, string displayName)
{
this.recorderType = recorderType;
this.displayName = displayName;
}
public RecorderSettingsAttribute(Type recorderType, string displayName, string iconName)
{
this.iconName = iconName;
this.recorderType = recorderType;
this.displayName = displayName;
}
}
}