Skip to content

Commit

Permalink
updated to Unity 2022 and switched to the MRTK unitypackage import al…
Browse files Browse the repository at this point in the history
…ternative
  • Loading branch information
BenediktHensen committed Mar 11, 2024
1 parent 68752ce commit a5c09be
Show file tree
Hide file tree
Showing 6,167 changed files with 1,634,518 additions and 162 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.

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.

8 changes: 8 additions & 0 deletions Assets/MRTK/Core.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Assets/MRTK/Core/AssemblyInfo.cs
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")]
11 changes: 11 additions & 0 deletions Assets/MRTK/Core/AssemblyInfo.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/MRTK/Core/Attributes.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Assets/MRTK/Core/Attributes/DocLinkAttribute.cs
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; }
}
}
11 changes: 11 additions & 0 deletions Assets/MRTK/Core/Attributes/DocLinkAttribute.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions Assets/MRTK/Core/Attributes/EnumFlagsAttribute.cs
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() { }
}
}
11 changes: 11 additions & 0 deletions Assets/MRTK/Core/Attributes/EnumFlagsAttribute.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions Assets/MRTK/Core/Attributes/ExperimentalAttribute.cs
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;
}
}
}
11 changes: 11 additions & 0 deletions Assets/MRTK/Core/Attributes/ExperimentalAttribute.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a5c09be

Please sign in to comment.