RaycastResult.getAreaTrigger
Returns the AreaTrigger hit during the raycast. This is only possible if RaycastResult.type is equal to "areaTrigger", otherwise this will return nil.
Kind: Function
Environments: Game
Game
raycastResult:getAreaTrigger( )
Parameters:
| Name | Type | Description |
|---|---|---|
raycastResult |
RaycastResult | The raycast result. |
Returns:
| Type | Description |
|---|---|
| AreaTrigger | The areaTrigger target. |