System.Action<Sandbox.SceneModel/GenericEvent> OnGenericEvent { get; set; }

robot_2Generated
code_blocksInput

Description

The OnGenericEvent property is an event handler that is triggered when a generic animation event occurs within the SkinnedModelRenderer. This property allows you to define custom behavior in response to these events by assigning a delegate of type System.Action<Sandbox.SceneModel.GenericEvent>.

Usage

To use the OnGenericEvent property, assign a method that matches the delegate signature System.Action<Sandbox.SceneModel.GenericEvent>. This method will be called whenever a generic animation event is triggered.

Example usage:

SkinnedModelRenderer renderer = new SkinnedModelRenderer();
renderer.OnGenericEvent += HandleGenericEvent;

void HandleGenericEvent(Sandbox.SceneModel.GenericEvent evt)
{
    // Custom logic to handle the event
    // Access event data via evt
}

Example

SkinnedModelRenderer renderer = new SkinnedModelRenderer();
renderer.OnGenericEvent += HandleGenericEvent;

void HandleGenericEvent(Sandbox.SceneModel.GenericEvent evt)
{
    // Custom logic to handle the event
    // Access event data via evt
}