Closed TakuyaKinoshita closed 3 years ago
I think it might be related to the #8507 issue.
Looks to me like the underlying issue is that we only cache the collider in OnValidate
, which is only called in the editor:
We should either lazy cache (in the property getter, if the backing field is null
) or additionally cache in Awake
or Start
if the backing field is null at that point.
@CDiaz-MS do we have an ETA on this? Can @keveleigh or I help?
Yes, help would be appreciated on this one.
Describe the bug
I wanted to register hand events dynamically when I used HoloLens2. I implemented the following reference and it works in UnityEditor, but not when deployed to HoloLens2.
First, I created the code to change the color of the material using the Sphere object. Added an event to dynamically set the color for Sphere objects.
Articles referred to https://microsoft.github.io/MixedRealityToolkit-Unity/Documentation/Input/HowToAddNearInteractivity.html#near-interaction-script-examples
To reproduce
Steps to reproduce the behavior:
Expected behavior
When touching a Sphere object, the color of the object will be changed to the specified color.
Screenshots
In Editor
Your setup (please complete the following information)
Target platform (please complete the following information)
Additional context
Add any other context about the problem here.