MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Editor inspector fails to display MRTK IconSet

Open philip-lamb opened this issue 5 years ago • 18 comments

Describe the bug

When selecting a MRTK IconSet in the Unity Editor, the icons are not displayed. Instead an error is displayed in the inspector "You can't nest FoldoutHeaders, end it with EndHeaderFoldoutGroup.".

To reproduce

Steps to reproduce the behavior:

  1. Install MRTK standard assets.
  2. Navigate to default IconSet
  3. Look at inspector pane

Expected behavior

Should see icons in set.

Screenshots

Screenshot 2021-02-22 125557

Your setup (please complete the following information)

  • Unity 2020.2.2f1
  • MRTK 2.5.4

Target platform (please complete the following information)

  • HoloLens 2

Additional context

philip-lamb avatar Feb 22 '21 00:02 philip-lamb

Having the same issue. Found a tempory workound to add my own icon by modifying the DefaultIconSet.asset in an editor (create a new entry with the GUID of the icon you want the add)

atiemark avatar Mar 02 '21 15:03 atiemark

Hmm, I'm not able to fully repro. Am I missing anything? I'm able to view the asset, but unable to fold out any of the foldouts due to packages being immutable:

image

keveleigh avatar Mar 02 '21 17:03 keveleigh

I re-imported the project (close project, delete library folder, reopen, set platform and build settings) and I can't reproduce this now. At a guess it could have been some out of date asmdef.

philip-lamb avatar Mar 03 '21 01:03 philip-lamb

Hi, I'm having the same issue. Screenshot (41)

Your setup (please complete the following information) Unity 2020.3.11f1 MRTK 2.7.0

MiPa12 avatar Jun 25 '21 09:06 MiPa12

@RogPodge Was this an issue fixed by https://github.com/microsoft/MixedRealityToolkit-Unity/pull/9999?

keveleigh avatar Jun 25 '21 17:06 keveleigh

Yep! should be fixed

RogPodge avatar Jun 25 '21 17:06 RogPodge

same problem

daffy76 avatar Sep 11 '21 14:09 daffy76

Same problem,

Created a new icon set, Quad and Sprite Icons error in inspector panel: "You cant nest Foldout Headers, end it with EndHeatherFoldoutGroup"

istvanContXtual avatar Nov 04 '21 18:11 istvanContXtual

This problem still exists in MRTK 2.7.2

MilanPolle avatar Dec 01 '21 14:12 MilanPolle

The fix is checked into the main repo but is not yet released in one of our official packages.

We are looking to put out a release which contains this bug fix before end of the year, so stay tuned

RogPodge avatar Dec 01 '21 19:12 RogPodge

Thank you for your reply! I downloaded the fix and applied it to the mrtk core package, this solved the problem.

MilanPolle avatar Dec 01 '21 19:12 MilanPolle

@MilanPolle I am facing the same issue with MRTK 2.7.2 May I ask what do you mean by you downloaded the fix?

kkyuri0419 avatar Dec 02 '21 09:12 kkyuri0419

@kkyuri0419 the file with the fix is here: https://raw.githubusercontent.com/RogPodge/MixedRealityToolkit-Unity/02f3e41f650a14eb744b41507270fea0d0470d6a/Assets/MRTK/SDK/Features/UX/Scripts/Buttons/ButtonIconSet.cs

Open the /packages/MixedReality/ folder, in your Unity project and then open the .toolkit.foundation tgz file there (with 7Zip, for instance).

In the tgz file, navigate to /package/SDK/Features/UX/Scripts/Buttons/ and there you can replace the ButtonIconSet.cs file with the one you've downloaded.

Unity will process the changes by itself and then you should be able to add your icons in the editor without the errors that were there.

MilanPolle avatar Dec 02 '21 09:12 MilanPolle

@kkyuri0419 the file with the fix is here: https://raw.githubusercontent.com/RogPodge/MixedRealityToolkit-Unity/02f3e41f650a14eb744b41507270fea0d0470d6a/Assets/MRTK/SDK/Features/UX/Scripts/Buttons/ButtonIconSet.cs

Open the /packages/MixedReality/ folder, in your Unity project and then open the .toolkit.foundation tgz file there (with 7Zip, for instance).

In the tgz file, navigate to /package/SDK/Features/UX/Scripts/Buttons/ and there you can replace the ButtonIconSet.cs file with the one you've downloaded.

Unity will process the changes by itself and then you should be able to add your icons in the editor without the errors that were there.

Thank you so much @MilanPolle !! it perfectly works!

kkyuri0419 avatar Dec 03 '21 03:12 kkyuri0419

@kkyuri0419 Glad to hear that! Thanks for letting me know.

MilanPolle avatar Dec 03 '21 08:12 MilanPolle

Just curious, since this was fixed in March what caused it to be missed in the 2.7.2 release? Also, would love to see this fixed in the next package release. It's kind of painful to apply the hotfix above and the next MRFT update will likely overwrite it. Thanks!

jbienz avatar Dec 06 '21 15:12 jbienz

Just curious, since this was fixed in March what caused it to be missed in the 2.7.2 release?

The PR that fixed this was #9999, which was merged in June and just missed the 2.7.2 stabilization cutoff. It'll definitely be in our next release!

keveleigh avatar Dec 06 '21 18:12 keveleigh

You may fix the bug with the link. The easiest way is to update to 2.7.3 fundamental with MixedRealityFeatureTool. In my case, nothing appears any errors after the update to 2.7.3.

Additionally. I tried exchanging Button IconSet.cs into tar at the package and tied it again. but It's not working.

이미지 003

dvDevel avatar Oct 04 '22 09:10 dvDevel