Horje
play animation through script unity Code Example
how to play animation with code in unity
public GameObject ExampleNPC;

void Update()
{
    if(Input.GetButtonDown("Animation")) // Make sure to refrence this in Input settings
    {
        ExampleNPC.GetComponent<Animator>().Play("Anim name");
    }
}
play animation through script unity
animator.Play("StateName");




Csharp

Related
displayname c# Code Example displayname c# Code Example
asp.net model display name Code Example asp.net model display name Code Example
c# string to enum Code Example c# string to enum Code Example
convert string to int c# Code Example convert string to int c# Code Example
c# convert string to enum Code Example c# convert string to enum Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10