ZMWSLI0-SL2021-GR11/Projekt/MWSProjekt/Library/PackageCache/com.unity.timeline@1.5.4/Editor/Attributes/ActiveInModeAttribute.cs

27 lines
797 B
C#
Raw Normal View History

2021-07-05 21:20:56 +02:00
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;
}
}
}