void OnPropertyDirty( Sandbox.WrappedPropertySet<T, &> p )

book_4_sparkGenerated
code_blocksInput

Description

The OnPropertyDirty method is a member of the RenderOptions class in the Sandbox namespace. This method is used to handle changes to properties within the RenderOptions class. When a property is marked as dirty, indicating that its value has changed, this method is invoked to perform any necessary updates or actions in response to the change.

Usage

To use the OnPropertyDirty method, you need to have an instance of the RenderOptions class. This method takes a single parameter, p, which is a reference to a WrappedPropertySet<T> object. This parameter represents the property set that has been modified.

Typically, this method is called internally by the RenderOptions class when a property is modified. It is not usually called directly by user code.

Example

// Example of how OnPropertyDirty might be used internally
public class CustomRenderOptions : RenderOptions
{
    public void UpdateProperty()
    {
        // Assume we have a property set that needs to be marked as dirty
        WrappedPropertySet<bool> propertySet = new WrappedPropertySet<bool>();
        // Mark the property as dirty
        OnPropertyDirty(ref propertySet);
    }
}