MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

World Anchor Usage

Open shubham-bitsnbytes opened this issue 8 years ago • 3 comments

Is it okay to call world anchor api to attach or remove anchor frequently ? Does attach & remove anchor has any performance effect? Use case: User is moving a hologram. I want to attach anchor once user does finger remove gesture. If user again presses finger, to move hologram i should remove world anchor and repeat the same.

Should world anchor attach & remove be tied to UI like button clicked to remove or to user actions like finger press gesture (while doing some action).

shubham-bitsnbytes avatar Mar 23 '18 09:03 shubham-bitsnbytes

We've been using WorldAnchors pretty extensively with zero problems. When unlocking an object for positioning (e.g., using HandDraggable), we delete the anchor immediately and recreate it when the drag operation is completed. I've yet to see a single side effect, even in scenes with dozens of anchors.

The only time we don't use anchors is when an object is expected to be more active than not: UI elements with Tagalong components, remote user avatars, etc.

calebcannon avatar Mar 23 '18 21:03 calebcannon

Thank you @calebcannon

shubham-bitsnbytes avatar Mar 26 '18 05:03 shubham-bitsnbytes

Closing issues older than 180 days. If this is still an issue, please reactivate with recent information.

wiwei avatar Apr 11 '19 20:04 wiwei