// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using UnityEngine; namespace Microsoft.MixedReality.Toolkit { /// /// A PropertyAttribute for showing a warning box that the tagged implementation is experimental. /// [AttributeUsage(AttributeTargets.Field, Inherited = true)] public class ExperimentalAttribute : PropertyAttribute { /// /// The text to display in the warning box. /// public string Text; private const string defaultText = "This is an experimental feature.\n" + "Parts of the MRTK appear to have a lot of value even if the details " + "haven’t fully been fleshed out. For these types of features, we want " + "the community to see them and get value out of them early. Because " + "they are early in the cycle, we label them as experimental to indicate " + "that they are still evolving, and subject to change over time."; /// /// Constructor. /// /// The experimental text to display in the warning box. public ExperimentalAttribute(string experimentalText = defaultText) { Text = experimentalText; } } }