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 methodSetAlternativeOutline
Sets an alternative outline to display when previewing this snap target
Public methodShowOutline
Shows/Hides the alternative outline. Returns true if an alternative outline exists, otherwise false if one was not set
Protected methodStart
Unity Component Method
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