The '''SnapTarget''' component allows a slot with a [[Snapper (Component)|Snapper Component]] to attach to this [[slot]].
The '''SnapTarget''' component allows a slot with a [[Snapper (Component)|Snapper Component]] to attach to this [[slot]].
== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|SnapperWhitelist|Snapper| List of [[Snapper (Component)|Snappers]] that are allowed to attach to this component
|SnapperWhitelist|{{RootFieldType|SyncRefList`1|[[Component:Snapper|Snapper]]}}|TypeAdv0=true| List of [[Snapper (Component)|Snappers]] that are allowed to attach to this component
|SnapperKeywordWhitelist|String| List of keywords to match against a corresponding [[Snapper (Component)|Snapper]]
|SnapperKeywordWhitelist|{{RootFieldType|SyncFieldList`1|[[Type:String|String]]}}|TypeAdv1=true| List of keywords to match against a corresponding [[Snapper (Component)|Snapper]]
|MaximumSnapDistance|Float| The maximum distance the [[Snapper (Component)|Snapper]] can snap with the Target. This value drives the [[SphereCollider (Types)|SphereCollider]] radius
|MaximumSnapDistance|Float| The maximum distance the [[Snapper (Component)|Snapper]] can snap with the Target. This value drives the [[SphereCollider (Component)|SphereCollider]] radius
|MaximumAngleDeviation|Float| {{stub}}
|MaximumAngleDeviation|Float| {{stub}}
|AnimationTime|Float| The time it takes for the [[Snapper (Component)|Snapper]] to lerp to the Target
|AnimationTime|Float| The time it takes for the [[Snapper (Component)|Snapper]] to lerp to the Target
|AutoSnap|Bool| {{stub}}
|AutoSnap|Bool| {{stub}}
|_snapColliderRadius|Float| The radius drive reference of the [[SphereCollider (Types)|SphereCollider]]
|_snapColliderRadius|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv8=true| The radius drive reference of the [[SphereCollider (Component)|SphereCollider]]
|proxySphere|SphereCollider| Reference of the [[SphereCollider (Types)|SphereCollider]] that is added on adding the [[SnapTarget (Component)|SnapTarget]] to a slot
|proxySphere|'''[[Component:SphereCollider|SphereCollider]]'''|TypeAdv9=true| Reference of the [[SphereCollider (Component)|SphereCollider]] that is added on adding the [[SnapTarget (Component)|SnapTarget]] to a slot
}}
}}
== Behavior ==
== Behavior ==
{{stub}}
Allows the slot containing this component to receive slots that contain a [[Component:Snapper|Snapper]] component, the Snapper slot will enter the hierarchy of the SnapTarget slot and get positioned to the center. The SnapperWhitelist allows you to reference specific snappers that you want to allow to link with the SnapTarget. The SnapperKeywordWhitelist allows Snappers with the same keyword to link with the SnapTarget.
Allows the slot containing this component to receive slots that contain a Snapper component, the Snapper slot will enter the hierarchy of the SnapTarget slot and get positioned to the center. The SnapperWhitelist allows you to reference specific snappers that you want to allow to link with the SnapTarget. The SnapperKeywordWhitelist allows Snappers with the same keyword to link with the SnapTarget.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.