RaycastResult.getTerrainAssetMaterialName
Returns the material hit during the raycast. This is only possible if RaycastResult.type is equal to "terrainAsset", otherwise this will return empty.
Kind: Function
Environments: Game
Game
raycastResult:getTerrainAssetMaterialName( )
Parameters:
| Name | Type | Description |
|---|---|---|
raycastResult |
RaycastResult | The raycast result. |
Returns:
| Type | Description |
|---|---|
| string | The material name. |