---
tags:
    - "Animation, Clip, Play, Animate"
---

# Animator Set IK Rotation Weight

[Animation](../index.md) / [Animator](index.md) / **Animator Set IK Rotation Weight**

## Description

Executes the Set IK Rotation Weight method on the Animator component

## Parameters

| Name | Description |
| :--- | :---------- |
| Goal |  |
| Value |  |

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Animator Set IK Rotation Weight")]
    [Category("Animation/Animator/Set IK Rotation Weight")]
    [Description("Executes the Set IK Rotation Weight method on the Animator component")]
    
    [Image(typeof(IconAnimator), ColorTheme.Type.Teal)]
    [Keywords("Animation, Clip, Play, Animate")]
    
    [Parameter("Goal")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenInstructionAnimator_SetIKRotationWeight_2 : Instruction
    {
        [SerializeField] private GetGameObject m_Animator = new GetGameObject(
            new GenTypeGameObject_Animator()
        );
        
        [SerializeField] private AvatarIKGoal m_Goal = default;
        
        [SerializeField] private GetNumber m_Value = new GetNumber();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Set IK Rotation Weight");
            return $"{this.m_Animator} {method} ({this.m_Goal}, {this.m_Value})";
        }
        
        protected override Awaitable Run(Args args)
        {
            Animator component = this.m_Animator.Get<Animator>(args);
            if (component == null) return Done;
            
            component.SetIKRotationWeight(
                this.m_Goal,
                (float) this.m_Value.Get(args)
            );
            
            return Done;
        }
    }
}


```

