microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
5.99k stars 2.12k forks source link

Overview of available IconTextureNames missing #9969

Closed janick187 closed 3 years ago

janick187 commented 3 years ago

Describe the issue

I am trying to update the icon of a button with the help of ButtonConfigHelper.SetQuadIconByName(String). However, I do not know the Texture Name of the new icon. E.g. I want to update the button with the 'refresh' icon. But I don't know the Texture Name of this icon.

Feature area

In the documentation the different Texture Names of default icons are not included.

Existing doc link

https://docs.microsoft.com/en-us/dotnet/api/microsoft.mixedreality.toolkit.ui.buttonconfighelper.setquadiconbyname?view=mixed-reality-toolkit-unity-2020-dotnet-2.7.0#definition

RogPodge commented 3 years ago

The texture names refer to the names of the icons in the icon set: image

image

We realize that these aren't easily surfaced within the button config helper, and will let users toggle the icon names within the button config inspector

RogPodge commented 3 years ago

Updated as follows in the PR: image