void ClearIk( string name )

robot_2Generated
code_blocksInput

Description

The ClearIk method of the SkinnedModelRenderer class is used to disable an Inverse Kinematics (IK) parameter by setting ik.{name}.enabled to false. This is useful when you want to stop the IK effect on a specific bone or joint in a skinned model.

Usage

To use the ClearIk method, you need to have an instance of the SkinnedModelRenderer class. Call the method with the name of the IK parameter you wish to disable.

Parameters:

  • name (System.String): The name of the IK parameter to be disabled.

Example

// Assuming 'renderer' is an instance of SkinnedModelRenderer
renderer.ClearIk("arm_ik");

// This will disable the IK for the parameter named "arm_ik".