Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Do not merge] New binding + theming testbed branch #11387

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -31,7 +31,7 @@ MRTK3 is currently in **public preview.** We appreciate your feedback and contri

## Requirements

MRTK3 requires Unity 2020.3.42, 2021.3.14 or higher. In addition, you need the [Mixed Reality Feature Tool for Unity](https://aka.ms/mrfeaturetool) to find, download, and add the packages to your project.
MRTK3 requires Unity 2021.3.16f1 or higher. In addition, you need the [Mixed Reality Feature Tool for Unity](https://aka.ms/mrfeaturetool) to find, download, and add the packages to your project.

## Getting started
[Follow the documentation for setting up MRTK3 packages as dependencies in your project here.](https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/mrtk3-overview/setup) Alternatively, you can clone this repo directly to experiment with our template project. However, we *strongly* recommend adding MRTK3 packages as dependencies through the Feature Tool, as it makes updating, managing, and consuming MRTK3 packages far easier and less error-prone.
Expand Down
@@ -0,0 +1,11 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Microsoft.MixedReality.Toolkit.Theming;
using Microsoft.MixedReality.Toolkit.EditorTools;

[UnityEditor.CustomEditor(typeof(ThemeManager))]
[UnityEditor.CanEditMultipleObjects]
public class CustomThemeManagerEditor : MRTKEditorBase
{
}

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

27 changes: 27 additions & 0 deletions UnityProjects/MRTKDevTemplate/Assets/DefaultTheme.asset
@@ -0,0 +1,27 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 79945c1df7997a04badf54c8401f5b8d, type: 3}
m_Name: DefaultTheme
m_EditorClassIdentifier:
sourceName:
themeRecordName: Default Theme
themeItems:
_items:
- Id: 629473106
ItemName: Primary Text Color
Type: 1
- Id: 1934966859
ItemName: Menu Plate Material
Type: 0
- Id: 1194890048
ItemName: Panel Color
Type: 1

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