s&box docs

public sealed struct Sandbox.Surface.SurfacePrefabCollection

Holds a dictionary of common prefabs associated with a surface

Properties

Showing 2 properties

public Sandbox.GameObject Sandbox.Surface.SurfacePrefabCollection.BluntImpact { get; set; }

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.

public Sandbox.GameObject Sandbox.Surface.SurfacePrefabCollection.BulletImpact { get; set; }

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.

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Surface.SurfacePrefabCollection

On this page