forked from Unity-Technologies/Graphics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMinMaxAttribute.cs
More file actions
32 lines (29 loc) · 963 Bytes
/
Copy pathMinMaxAttribute.cs
File metadata and controls
32 lines (29 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
namespace UnityEngine.Rendering.PostProcessing
{
/// <summary>
/// Use this attribute to specify a range between a min and a max value.
/// </summary>
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public sealed class MinMaxAttribute : Attribute
{
/// <summary>
/// The minimum limit of the user defined range.
/// </summary>
public readonly float min;
/// <summary>
/// The maximum limit of the user defined range.
/// </summary>
public readonly float max;
/// <summary>
/// Creates a new attribute.
/// </summary>
/// <param name="min">The minimum limit of the user defined range</param>
/// <param name="max">The maximum limit of the user defined range</param>
public MinMaxAttribute(float min, float max)
{
this.min = min;
this.max = max;
}
}
}