RaycastResult.getHarvestable

Returns the Harvestable hit during the raycast. This is only possible if RaycastResult.type is equal to "harvestable", otherwise this will return nil.

Kind: Function

Environments: Game

Game

raycastResult:getHarvestable(  )

Open the full Game reference

Parameters:

Name Type Description
raycastResult RaycastResult The raycast result.

Returns:

Type Description
Harvestable The harvestable target.