Get Surface Type

Get Surface Type

Choose your operating system:

Windows

macOS

Linux

Returns the EPhysicalSurface type of the given Hit. To edit surface type for your project, use ProjectSettings/Physics/PhysicalSurface section

Target is Gameplay Statics

Get Surface Type
Hit
Return Value
SurfaceType_Default

Inputs

Hit
Hit Result Structure (by ref)

Outputs

Return Value
EPhysicalSurface Enum

Returns the EPhysicalSurface type of the given Hit. To edit surface type for your project, use ProjectSettings/Physics/PhysicalSurface section