// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit
{
///
/// Attribute used to make a float or int variable in a script be restricted to a specific range.
///
[AttributeUsage(AttributeTargets.Field)]
public sealed class Vector3RangeAttribute : PropertyAttribute
{
///
/// Minimum value.
///
public readonly float Min;
///
/// Maximum value.
///
public readonly float Max;
///
/// Attribute used to make a float or int variable in a script be restricted to a specific range.
///
/// The minimum allowed value.
/// The maximum allowed value.
public Vector3RangeAttribute(float min, float max)
{
Min = min;
Max = max;
}
}
}