Click or drag to resize

SnapTarget Methods

The SnapTarget type exposes the following members.

Methods
  NameDescription
Protected methodAwake
Unity Component Method
Public methodEnableSnappingGuide
Used to Enable snapping guide on a per snap target basis
Public methodForceDisableSnappingGuide
Used to disable snapping guide on a per snap target basis
Public methodGetMaskedAngle(Transform, SnappingRotationAxis)
Gets the angle using the provided axis
Public methodStatic memberGetMaskedAngle(Transform, Quaternion, SnappingRotationAxis, SnappingRotationAxis)
Gets the angle using the provided axis
Public methodHideSnappingGuide
Hides the alternative Snapping Guide.
Public methodIsOccupiedBy
Check if this target is occupied by the specified transform
Public methodIsValidTarget
Returns true if the target is valid, otherwise false. This also checks that the GameObject is active in the hierarchy and that the component is enabled.
Public methodOccupy
Marks this target as occupied by this transform
Public methodOverrideTransformSyncTolerances
Override the default tolerances
Public methodSetAlternativeSnappingGuide
Sets an alternative Snapping Guide to display when previewing this snap target
Public methodShowSnappingGuide
Shows the alternative Snapping Guide.
Protected methodStart
Unity Component Method
Public methodUseTransformSyncTolerances
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also