Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How do I get the name of "ELEMENT 0" via script?

Discussion in 'Animation' started by N0NameDev, Feb 3, 2022.

  1. N0NameDev

    N0NameDev

    Joined:
    Nov 14, 2021
    Posts:
    2
    So I have a problem finding the name of Elements in Animation component
    Code (CSharp):
    1.  
    2. IEnumerator Reload()
    3.     {
    4.         isReloading = true;
    5.         anim.Play();
    6.         yield return new WaitForSeconds(reloadTime);
    7.         currentAmmo = ammoPerMag;
    8.         isReloading = false;
    9.     }