You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(input): rebuild interactables every frame to handle dynamically added objects
Summary:
- Fix timing issue where dynamically added Interactable objects weren't becoming interactive
- Rebuild `interactableDescendants` every frame in XR mode instead of only when dirty
- Remove expensive `isDescendantOf()` parent chain traversal check (no longer needed)
- Reuse single `intersectables` array to avoid allocations
- Set `scene.interactableDescendants = undefined` in 2D mode for proper mouse/touch events
- Objects now become interactive on next frame after TransformSystem parents them to scene
Reviewed By: zjm-meta
Differential Revision:
D87656625
Privacy Context Container: L1334777
fbshipit-source-id: 5113910601e2579924a2a0a2a1eb8ef0fcc045fc
0 commit comments