microsoft / MixedRealityToolkit

The MixedRealityToolkit is a collection of scripts and components intended to accelerate the development of mixed reality applications targeting Windows Mixed Reality.
MIT License
856 stars 276 forks source link

ScrollingObjectCollection enables disabled renderers #255

Closed afarchy closed 3 years ago

afarchy commented 3 years ago

I'm using a ScrollingObjectCollection with a GridObjectCollection:

image

Each item in my GridObjectCollection has a script to deactivate parts of the item according to the backing data model. However, the scrolling object collection is re-activating the game objects which have renderers indiscriminately. This issue makes the this control unusable for my use case.

Suggestions:

  1. Have a way to disable this activate/deactivate behavior.
  2. Allow my items to implement an interface (e.g. IScrollingObjectItem) with callbacks for OnScrollingItemVisible and OnScrollingObjectClipped which I can use to disable the appropriate game objects.
afarchy commented 3 years ago

Moved here: https://github.com/microsoft/MixedRealityToolkit-Unity/issues/9121