Description
The Breakables
property provides information about the breakable characteristics of a surface material in the Sandbox environment. This property is part of the Surface
class, which is used to define various physical and audio properties of surfaces in the game.
Usage
Use the Breakables
property to access or modify the breakable information associated with a specific surface material. This can be useful for determining how a surface reacts when subjected to forces that may cause it to break or shatter.
Example
// Example of accessing the Breakables property
Surface mySurface = new Surface();
var breakableInfo = mySurface.Breakables;
// Example of modifying the Breakables property
mySurface.Breakables = new Surface.BreakablesInfo
{
// Set properties related to breakability
};