-
-
Notifications
You must be signed in to change notification settings - Fork 998
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Interaction): ensure auto grab works correctly with prefabs
If a Prefab was attempted to be auto grabbed that was also set to have `Disable On Idle` as true, then the prefab would clone and be disabled at the point of auto grabbing and therefore drop to the ground. This fix adds an additional option to specify the `Object To Grab` is a prefab and if it is then to disable the `Disable On Idle` check during the auto grab and to reset it when it has completed. Another option has been added that determines whether to always clone the object when the script is re-enabled or whether to just attempt to grab the original clone.
- Loading branch information
1 parent
492d593
commit 40ec5d0
Showing
2 changed files
with
48 additions
and
1 deletion.
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
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