Sandbox.Surface/ImpactEffectData ImpactEffects { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The ImpactEffects property of the Surface class provides access to the impact effects associated with a specific surface material. This property is of type Surface.ImpactEffectData, which contains data defining the visual and physical effects that occur when an object impacts the surface.

Usage

Use the ImpactEffects property to retrieve or modify the impact effects for a surface material. This can be useful for customizing the visual and physical response of a surface when it is struck by another object.

Example

// Example of accessing the ImpactEffects property
Surface mySurface = new Surface();
Surface.ImpactEffectData impactEffects = mySurface.ImpactEffects;

// Modify the impact effects
impactEffects.SomeEffectProperty = newValue;

// Apply the modified effects back to the surface
mySurface.ImpactEffects = impactEffects;