SnapTarget Methods |
The SnapTarget type exposes the following members.
Name | Description | |
---|---|---|
Awake |
Unity Component Method
| |
GetMaskedAngle(Transform, SnappingRotationAxis) |
Gets the angle using the provided axis
| |
GetMaskedAngle(Transform, Quaternion, SnappingRotationAxis, SnappingRotationAxis) |
Gets the angle using the provided axis
| |
IsOccupiedBy |
Check if this target is occupied by the specified transform
| |
IsValidTarget |
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.
| |
Occupy |
Marks this target as occupied by this transform
| |
SetAlternativeOutline |
Sets an alternative outline to display when previewing this snap target
| |
ShowOutline |
Shows/Hides the alternative outline.
Returns true if an alternative outline exists, otherwise false if one was not set
| |
Start |
Unity Component Method
|
Name | Description | |
---|---|---|
GetCopyOf |
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.) | |
WaitForT |
Waits for a singleton on a coroutine
(Defined by SingletonManager.) |