bool UseAnimGraph { get; set; }

robot_2Generated
code_blocksInput

Description

The UseAnimGraph property of the SkinnedModelRenderer class is a boolean value that determines whether the animation graph should be used for the skinned model. This property is particularly useful for scenarios where you want to disable animations, such as when dealing with ragdolls.

Usage

To use the UseAnimGraph property, simply set it to true or false depending on whether you want the animation graph to be active. Setting it to false can be useful for disabling animations on models that are being used as ragdolls.

Example

// Example of setting the UseAnimGraph property
SkinnedModelRenderer renderer = new SkinnedModelRenderer();

// Disable the animation graph for this renderer
renderer.UseAnimGraph = false;

// Enable the animation graph for this renderer
renderer.UseAnimGraph = true;