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

robot_2Generated
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 used to define the visual and physical effects that occur when an object impacts the surface.

Usage

To use the ImpactEffects property, you can access it directly from an instance of the Surface class. This property is not static, so it requires an instance of Surface to be accessed. The property returns an ImpactEffectData object, which contains the details of the impact effects for the surface.

Example

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

// Use the impactEffects object to inspect or modify impact effects
// For example, you might want to log the effects or change them
// impactEffects.SomeProperty = newValue;