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
6k stars 2.12k forks source link

Multi-Object selection on Interactable mono causes loss of serialized data #11403

Closed DeaLunae closed 9 months ago

DeaLunae commented 1 year ago

Describe the bug

When 'Multi-Object selecting' multiple Interactables, fx. the PressableButtonHoloLens2 prefab's Interactable script, the themes, and events of all Interactable will become corrupted and lost if any of the selected Interactable scripts differ from each other in various ways, such as "Selection Mode" being set to different values.

To reproduce

Steps to reproduce the behavior:

  1. Create a project with MRTK Foundation package 2.8.3
  2. Import the MRTK Examples from the package manager
  3. Open the scene at "Assets/Samples/Mixed Reality Toolkit Examples/2.8.3/Demos - HandTracking/Scenes/HandInteractionExamples.unity"
  4. Search Hierarchy for "Compressable PressableButtons" and select the Enabled Gameobject with that name
  5. On the children of that gameobject, change the "Selection Mode" to Toggle on the Interactable of one of the "PressableButtonHololens2UnityUI" Gameobjects
  6. Now Multi-Object select all 4 buttons and fold out the Interactable mono behavior if it is collapsed.
  7. Now select them individually, and note that Interactable Themes and Events are either set to other values than before or unset entirely.

Expected behavior

All Serialized values on each of the Interactable Monos of the PressableButtonHololens2UnityUI's should remain unchanged when simply selecting them with multi-object select.

Screenshots

Example of an unset field after multi-object selection image

Your setup (please complete the following information)

Target platform (please complete the following information)

Not platform related, but build platform set to Windows Standalone

IssueSyncBot commented 9 months ago

Hi @Rose-Fox,

We appreciate your feedback and thank you for reporting this issue.

Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.

Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.

Please note that MRTK3 was released in August 2023. It features an all new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visithttps://www.mixedrealitytoolkit.org.

Thank you for your continued support of the Mixed Reality Toolkit!