Surface Types

A surface type represents a specific type of physical surface on a collider, and is added as a value in the inspector of the Damage Receiver component.

This enables a weapon to, for example, spawn different hit effects for different surfaces, such as a cloud of dust for rock and sparks for energy shields.

Creating Surface Types

To create a new surface type:

  1. Go to the Project tab and right click > Create > VSX > Surface Type

  2. Rename it to whatever you wish

  3. Add it to the Surface Type field in the inspector of any Damage Receiver component

Last updated