Files
beyond/Assets/ThirdParty/Invector-3rdPersonController/Basic Locomotion/Scripts/Generic/vSetAnimatorLayerWeight.cs
2024-11-20 15:21:28 +01:00

16 lines
336 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class vSetAnimatorLayerWeight : MonoBehaviour
{
[Range(0,1)]
public float value;
public int animatorLayerIndex;
private void Start()
{
GetComponent<Animator>().SetLayerWeight(animatorLayerIndex, value);
}
}