Component:SnapPoint: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page SnapPoint (Component) to Component:SnapPoint: Creating component Namespace
add info, no longer stub
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=SnapPointComponent.png
|Image=SnapPointComponent.png
|Name=Snap Point
|Name=Snap Point
}}
}}
A snap point is a component that when called by another component always returns the point of the slot it is on (0,0,0). Usually this is used in components like the [[Component:MultiUserAvatarAnchor|Multi User Avatar Anchor Component]] to determine where to place the anchors upon clicking (click point is used in such case). This component will take a given point by another component and return the position the slot is on, acting as a nullifier of incoming data.


<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|SnapParent|Slot|
|SnapParent|Slot| Where to put slots if the component is being used for slot placement.
}}
}}


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Used as an anchor point generator in the [[Component:MultiUserAvatarAnchor|Multi User Avatar Anchor Component]] and other components.


<!--T:4-->
<!--T:4-->
Line 23: Line 24:
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Snap Point]]
[[Category:Components{{#translation:}}|Snap Point]]
[[Category:Components:Transform:Snapping{{#translation:}}|Snap Point]]
[[Category:Components:Transform:Snapping{{#translation:}}|Snap Point]]

Revision as of 18:59, 29 February 2024

Component image 
Snap Point component as seen in the Scene Inspector

A snap point is a component that when called by another component always returns the point of the slot it is on (0,0,0). Usually this is used in components like the Multi User Avatar Anchor Component to determine where to place the anchors upon clicking (click point is used in such case). This component will take a given point by another component and return the position the slot is on, acting as a nullifier of incoming data.

Fields

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.
SnapParent Slot Where to put slots if the component is being used for slot placement.

Usage

Used as an anchor point generator in the Multi User Avatar Anchor Component and other components.

Examples

Related Components