microsoft / MixedReality-UXTools-Unreal

UX tools and components for developing Mixed Reality applications in UE4.
https://microsoft.github.io/MixedReality-UXTools-Unreal/
MIT License
316 stars 86 forks source link

as long as "Generate Collision for Mesh Data" is opened, the button can't be clicked in ue4.26.1 #26

Closed YiRonger closed 3 years ago

YiRonger commented 3 years ago

Hello, Using version 0.11 UE Version 4.26.1 As long as "Generate Collision for Mesh Data" is opened in ARSession, the button can't be clicked in ue4.26.1.

In ue4.25, I can click normally even if I select "Generate Collision for Mesh Data", but not in ue4.26.

EVRTOP commented 3 years ago

@macborow Hello, do you have any updates?

macborow commented 3 years ago

Sorry about the delay. I haven't had a chance to check this yet but I'll look into it shortly.

macborow commented 3 years ago

The issue is caused by the collisions with reconstructed hand mesh and is a known issue at the moment. We are working on a fix but it will require changes in the Unreal Engine, so it will not be available right away. For now please use the following workaround which disables collisions for the hand mesh.

Assuming Start AR Session is called in Begin Play (inside Game Mode), you can use the following steps:

There was also a great walk through of this workaround in the recent UE4 webinar - https://youtu.be/t95Bge-yk5E at ~50:45 (information about enabling collision data in AR Session starts at ~49:00). The video also explains how to deal with a slightly more complex use case involving caching spatial meshes in an array and enabling/disabling them on demand with a button.

YiRonger commented 3 years ago

OK, I see. Thank you very much!

macborow commented 3 years ago

Just a quick update on this issue - we added a workaround for this problem in UXTools 0.12.x release. Hand collisions are now automatically updated by UXTools and the changes in Blueprint which I mentioned earlier are no longer necessary. The root cause has been fixed in Unreal Engine 4.27 and I have just checked that the fix is included in 4.27.0-preview2 build.

YiRonger commented 3 years ago

Just a quick update on this issue - we added a workaround for this problem in UXTools 0.12.x release. Hand collisions are now automatically updated by UXTools and the changes in Blueprint which I mentioned earlier are no longer necessary. The root cause has been fixed in Unreal Engine 4.27 and I have just checked that the fix is included in 4.27.0-preview2 build.

OK, I see. Thank you so much!