Description
The OnPropertyDirty
method is a member of the RenderOptions
class in the Sandbox namespace. This method is called when a property within the RenderOptions
class is marked as dirty, indicating that its value has changed and may require re-evaluation or re-application of rendering settings.
Usage
Use the OnPropertyDirty
method to handle changes to properties encapsulated within a WrappedPropertySet<T>
. This method is typically used internally to ensure that any changes to rendering options are properly propagated and applied to the relevant rendering components or systems.
Example
// Example usage of OnPropertyDirty
RenderOptions renderOptions = new RenderOptions();
// Assume we have a WrappedPropertySet for a specific property
WrappedPropertySet<bool> propertySet = new WrappedPropertySet<bool>();
// Call OnPropertyDirty when the property changes
renderOptions.OnPropertyDirty(propertySet);