Component:SnapTarget: Difference between revisions

From Resonite Wiki
mNo edit summary
m type not types. also sphere collider is a component idk how to fix it
Line 12: Line 12:
|Filters|SnapperFilter| {{stub}}
|Filters|SnapperFilter| {{stub}}
|DirectSnapOnly|Bool| ''Unused''
|DirectSnapOnly|Bool| ''Unused''
|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|Float| 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|SphereCollider| Reference of the [[SphereCollider (Component)|SphereCollider]] that is added on adding the [[SnapTarget (Component)|SnapTarget]] to a slot
}}
}}



Revision as of 18:14, 18 January 2024

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
SnapTarget component as seen in the Scene Inspector

Introduction

The SnapTarget component allows a slot with a Snapper Component to attach to this slot.

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.
SnapperWhitelist Snapper List of Snappers that are allowed to attach to this component
SnapperKeywordWhitelist String List of keywords to match against a corresponding Snapper
Filters SnapperFilter This article or section is a Stub. You can help the Resonite Wiki by expanding it.
DirectSnapOnly Bool Unused
MaximumSnapDistance Float The maximum distance the Snapper can snap with the Target. This value drives the SphereCollider radius
MaximumAngleDeviation Float This article or section is a Stub. You can help the Resonite Wiki by expanding it.
AnimationTime Float The time it takes for the Snapper to lerp to the Target
AutoSnap Bool This article or section is a Stub. You can help the Resonite Wiki by expanding it.
_snapColliderRadius Float The radius drive reference of the SphereCollider
proxySphere SphereCollider Reference of the SphereCollider that is added on adding the SnapTarget to a slot

Behavior

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Related Components