Property | Value |
---|---|
Id | UEA0010 |
Category | Performance |
Severity | Warning |
using UnityEngine;
class Example : MonoBehaviour
{
Animator animator;
void Update()
{
animator.SetInteger("Walk", 1);
}
}
using UnityEngine;
class Example : MonoBehaviour
{
Animator animator;
int walkHash;
void Start()
{
var walkHash = Animator.StringToHash("Walk");
}
void Update()
{
animator.SetInteger(walkHash, 1);
}
}