Description
The HideSurface
property of the SphereAttribute
class in the Sandbox.ModelEditor
namespace determines whether the semi-transparent sphere surface is rendered. When set to true
, the sphere's surface will not be drawn, effectively hiding it from view. This can be useful for scenarios where the visual representation of the sphere is not needed, but its functionality or presence is still required.
Usage
To use the HideSurface
property, you need to have an instance of the SphereAttribute
class. You can then set this property to true
or false
depending on whether you want the sphere's surface to be visible or not.
Example
// Example of using the HideSurface property
public class MyComponent : Component
{
[SphereAttribute]
public SphereAttribute MySphere { get; set; }
public MyComponent()
{
// Initialize the sphere attribute
MySphere = new SphereAttribute();
// Hide the sphere surface
MySphere.HideSurface = true;
}
}