Description
The RenderOverride
field is an Action<SceneObject>
delegate that is invoked by the default implementation of the RenderSceneObject
method in the SceneCustomObject
class. This delegate allows you to define custom rendering logic for a scene object.
Usage
To use the RenderOverride
field, assign a method that matches the Action<SceneObject>
delegate signature. This method will be called during the rendering process of the scene object, allowing you to customize how the object is rendered.
Example usage:
SceneCustomObject mySceneObject = new SceneCustomObject();
mySceneObject.RenderOverride = (sceneObject) => {
// Custom rendering logic here
// Use sceneObject to access properties and methods
};
Example
SceneCustomObject mySceneObject = new SceneCustomObject();
mySceneObject.RenderOverride = (sceneObject) => {
// Custom rendering logic here
// Use sceneObject to access properties and methods
};