Horje
how to play animation with code in 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
call function from another script unity Code Example call function from another script unity Code Example
how to remove space between string in c# Code Example how to remove space between string in c# Code Example
delete all dir content c# Code Example delete all dir content c# Code Example
list of string to string c# Code Example list of string to string c# Code Example
if in dictionary c# Code Example if in dictionary c# Code Example

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