SurfacePrefabCollectionclass

Holds a dictionary of common prefabs associated with a surface

objectSurfacePrefabCollection
Namespace
global
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.Surface.SurfacePrefabCollection

Properties3

Showing 3 properties

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

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.

Returns:GameObject

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

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 should be parented to the surface that it hit and become orphaned if that surface is destroyed.

Returns:GameObject

public Sandbox.GameObject Sandbox.Surface.SurfacePrefabCollection.BulletImpactDecal { get; set; }PUBLICGETSET

A decal prefab to spawn when this surface is hit by a bullet. It should be parented to the surface that it hit and destroyed with it.

Returns:GameObject

On this page