Difference between revisions of "Snapper (Component)"
Jump to navigation
Jump to search
(+example) |
(Adding some documentation in behavior, particularly noting the necessity of it being in the same link as the grabbable because this seriously screwed me up for a good hour or so.) |
||
Line 17: | Line 17: | ||
== Behavior == | == Behavior == | ||
+ | Allows the slot in which this component resides in to snap to a [[SnapTarget (Component)| SnapTarget]] in another slot. The SnapTargetWhitelist allows you to specify a list of SnapTargets that this component will link to in case you want to limit its snapability. The keywords list allows you to provide a list of words which the SnapTarget can use to filter for specific types of snappers. | ||
+ | |||
+ | It is important to have this in a slot shared with a [[Grabbable (Component)| Grabbable]] component in the root link of the object you wish to snap. Snapped components will become children of the snap target. | ||
+ | |||
== Examples == | == Examples == | ||
* [https://www.youtube.com/watch?v=7y2hjzDlCyQ Snap things with Snappers] by [[User:ProbablePrime|ProbablePrime]] | * [https://www.youtube.com/watch?v=7y2hjzDlCyQ Snap things with Snappers] by [[User:ProbablePrime|ProbablePrime]] |
Latest revision as of 00:21, 7 February 2022
This article or section is a Stub. You can help the Neos Wiki by expanding it.
Intoduction
Usage
Fields | ||
---|---|---|
Name | Type | Description |
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated |
Enabled
|
Bool | Controls whether or not this component is enabled |
UseBoundingBoxCenter
|
Bool | |
SnapCheckRadius
|
Float | |
CheckStaticColliders
|
Bool | Allows the Snapper to look for colliders that are set to Static rather then Trigger. |
SnapTargetWhitelist
|
SnapTarget | List of SnapTargets that the slot can attach to |
Keywords
|
String | List of keywords to match against a corresponding SnapTargets. Can have multiple keywords to snap to multiple SnapTargets |
Behavior
Allows the slot in which this component resides in to snap to a SnapTarget in another slot. The SnapTargetWhitelist allows you to specify a list of SnapTargets that this component will link to in case you want to limit its snapability. The keywords list allows you to provide a list of words which the SnapTarget can use to filter for specific types of snappers.
It is important to have this in a slot shared with a Grabbable component in the root link of the object you wish to snap. Snapped components will become children of the snap target.
Examples
- Snap things with Snappers by ProbablePrime
- Neos VR Tutorial: Creating a unique key which opens a door by ProbablePrime