Firstborn/Library/PackageCache/com.unity.timeline@1.7.1/Editor/Attributes/ActiveInModeAttribute.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

27 lines
797 B
C#

using System;
namespace UnityEditor.Timeline.Actions
{
/// <summary>
/// Define the activeness of an action depending on its timeline mode.
/// </summary>
/// <seealso cref="TimelineModes"/>
[AttributeUsage(AttributeTargets.Class)]
public class ActiveInModeAttribute : Attribute
{
/// <summary>
/// Modes that will be used for activeness of an action.
/// </summary>
public TimelineModes modes { get; }
/// <summary>
/// Defines in which mode the action will be active.
/// </summary>
/// <param name="timelineModes">Modes that will define activeness of the action.</param>
public ActiveInModeAttribute(TimelineModes timelineModes)
{
modes = timelineModes;
}
}
}