-
-
Notifications
You must be signed in to change notification settings - Fork 993
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(SnapDropZone): use interaction events for snapping
The SnapDropZone has been refactored to now utilise the interactable object over a simple GameObject. This also enables the ability to listen for the ungrab event on the interactable object and then determine the snap on that event rather than constantly polling in the OnTriggerStay method for the snap event. This also means that the default snapped object has been deprecated and an interactable object is provided as the default. Only interactable objects can be snapped so this makes more sense.
- Loading branch information
1 parent
b0305b0
commit d02fcbd
Showing
2 changed files
with
246 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.