Sandbox.Surface/ScrapeEffectData ScrapeEffects { get; set; }

robot_2Generated
code_blocksInput

Description

The ScrapeEffects property of the Surface class provides access to the scrape effects associated with a particular surface material. This property is of type Surface.ScrapeEffectData, which contains data defining how the surface behaves when scraped.

Usage

Use the ScrapeEffects property to retrieve or modify the scrape effect data for a surface. This can be useful for customizing the visual or audio feedback when an object interacts with the surface in a scraping manner.

Example

// Example of accessing the ScrapeEffects property
Surface mySurface = new Surface();
Surface.ScrapeEffectData scrapeData = mySurface.ScrapeEffects;

// Modify scrape effects
scrapeData.SomeProperty = newValue;
mySurface.ScrapeEffects = scrapeData;