Click or drag to resize

SnapTarget Methods

The SnapTarget type exposes the following members.

Methods
  NameDescription
Protected methodAwake
Unity Component Method
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 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/Hides the alternative Snapping Guide. Returns true if an alternative Snapping Guide exists, otherwise false if one was not set
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