MixedRealityToolkit / MixedRealityToolkit-Unity

This repository holds the third generation of the Mixed Reality Toolkit for Unity. The latest version of the MRTK can be found here.
BSD 3-Clause "New" or "Revised" License
359 stars 91 forks source link

Add `GridObjectCollection` from MRTK2 for non-canvas UI layout #827

Open Schroedingers-Cat opened 1 month ago

Schroedingers-Cat commented 1 month ago

Problem

MRTK2 has a GridObjectCollection which is missing in MRTK3. Here's a link to the original docs.

Solution

Port missing functionality from MRTK2 to MRTK3

Considered Alternatives

Port it myself. I have no idea what's up ahead. Any specifics you'd want to see in a possible PR?

Additional context

I'm porting my project from MRTK2 to MRTK3 and it makes use of the GridObjectCollection several times.

anonymous2585 commented 1 month ago

If you are using canvas, you can use Unity's components "Vertical Layout Group", "Vertical Layout Group" or "Grid Layout Group". The button prefab for canvas is in Packages/org.mixedrealitytoolkit.uxcomponents/Button/Prefabs/Action Button.prefab

If you don't use canvas, why not using them?