Introduce Interactable reset API and behaviour using it #144
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reality Collective - Reality Toolkit Pull Request
Overview
It is a common scenario that we want to reset or clean up an interactable after the user is done interacting with it. When such a reset occurs, all interaction behaviours on the interactable must rest, if applicable.
A new
IInteractable.ResetInteractable
API was introduced. This API will ask the interactable to perform a full reset and will make sure allIInteractionBehaviours
attached to it, will receive a notification to do so as well.A new
AutoResetBehaviour
has been added. This interaction behaviour will monitor interactions and once ALL interaction on the interactable have ended, it will execute a reset after a configurable amount of time. It also comes with an option to auto reset the interactable to its initial pose.A new "Reset" event has been exposed for third party scripts or the Unity editor to hook into when a reset happens
Updated all the docs help URLs to the new domain
Added a way to hide the target handedness setting in the inspector for behaviours that ignore that setting