-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
…ternative
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: InternalsVisibleTo("Microsoft.MixedReality.Toolkit.Tests.EditModeTests")] | ||
[assembly: InternalsVisibleTo("Microsoft.MixedReality.Toolkit.Tests.PlayModeTests")] | ||
[assembly: System.Reflection.AssemblyVersion("2.8.3.0")] | ||
[assembly: System.Reflection.AssemblyFileVersion("2.8.3.0")] | ||
|
||
[assembly: System.Reflection.AssemblyProduct("Microsoft® Mixed Reality Toolkit")] | ||
[assembly: System.Reflection.AssemblyCopyright("Copyright © Microsoft Corporation")] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
|
||
namespace Microsoft.MixedReality.Toolkit | ||
{ | ||
/// <summary> | ||
/// Defines a documentation link for a service. | ||
/// Used primarily by service inspector facades. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] | ||
[Obsolete("Use HelpURLAttribute from Unity instead")] | ||
public class DocLinkAttribute : Attribute | ||
{ | ||
public DocLinkAttribute(string url) { URL = url; } | ||
|
||
public string URL { get; private set; } | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using UnityEngine; | ||
|
||
namespace Microsoft.MixedReality.Toolkit | ||
{ | ||
/// <summary> | ||
/// An attribute that allows a particular field to be rendered as multi-selectable | ||
/// set of flags. | ||
/// </summary> | ||
/// <remarks> | ||
/// From https://answers.unity.com/questions/486694/default-editor-enum-as-flags-.html | ||
/// </remarks> | ||
[AttributeUsage(AttributeTargets.Field)] | ||
public sealed class EnumFlagsAttribute : PropertyAttribute | ||
{ | ||
public EnumFlagsAttribute() { } | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using UnityEngine; | ||
|
||
namespace Microsoft.MixedReality.Toolkit | ||
{ | ||
/// <summary> | ||
/// A PropertyAttribute for showing a warning box that the tagged implementation is experimental. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Field, Inherited = true)] | ||
public class ExperimentalAttribute : PropertyAttribute | ||
{ | ||
/// <summary> | ||
/// The text to display in the warning box. | ||
/// </summary> | ||
public string Text; | ||
|
||
private const string defaultText = "<b><color=yellow>This is an experimental feature.</color></b>\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."; | ||
|
||
/// <summary> | ||
/// Constructor. | ||
/// </summary> | ||
/// <param name="experimentalText">The experimental text to display in the warning box.</param> | ||
public ExperimentalAttribute(string experimentalText = defaultText) | ||
{ | ||
Text = experimentalText; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.