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 using the UseAnimGraph property
var skinnedModelRenderer = new SkinnedModelRenderer();
// Disable the animation graph for this skinned model
skinnedModelRenderer.UseAnimGraph = false;
// Enable the animation graph for this skinned model
skinnedModelRenderer.UseAnimGraph = true;