Api SurfacePrefabCollection
struct

SurfacePrefabCollection

public sealed struct SurfacePrefabCollection

Holds a dictionary of common prefabs associated with a surface

Properties

Name Type Description
BulletImpact GameObject A prefab to spawn when this surface is hit by a bullet. The prefab should be spawned facing the same direction as the hit normal. It could include decals and particle effects. It should be parented to the surface that it hit.
BluntImpact GameObject A prefab to spawn when this surface is hit by something blunt. The prefab should be spawned facing the same direction as the hit normal. It could include decals and particle effects. It should be parented to the surface that it hit.
Assembly: Sandbox.Engine Declaring Type: Surface Full Name: Sandbox.Surface.SurfacePrefabCollection