Next: Speed Reporter, Previous: Rewinder, Up: General [Contents][Index]
This component allows objects to snap to colliders in your scene automatically. This is great for construction sims or other games where things are being created that need to "stick" to static geometry.
LayerMask
snapMaskWhat objects can we snap to? Make sure they are on the supplied layers, or nothing will happen!
SnapModes
snapModeStart is for run-time, validate is for in-editor (snaps when a value is changed)
Default value: SnapModes.Validate
SurfaceDetectModes
surfaceDetectModeShould we look down, or forward?
Default value: SurfaceDetectModes.WorldY
Vector3
rayOffsetWhere should the origin of the ray be offset?
Default value: new Vector3(0f, 100f, 0f)
Snaps the object based on the settings above
LayerMask
snapMaskWhat objects can we snap to? Make sure they are on the supplied layers, or nothing will happen!
SnapModes
snapModeStart is for run-time, validate is for in-editor (snaps when a value is changed)
Default value: SnapModes.Validate
SurfaceDetectModes
surfaceDetectModeShould we look down, or forward?
Default value: SurfaceDetectModes.WorldY
Vector3
rayOffsetWhere should the origin of the ray be offset?
Default value: new Vector3(0f, 100f, 0f)
Snaps the object based on the settings above
Next: Speed Reporter, Previous: Rewinder, Up: General [Contents][Index]