Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question Finding Animator parameter type

Discussion in 'Animation' started by oliver_unity892, Oct 11, 2023.

  1. oliver_unity892

    oliver_unity892

    Joined:
    Oct 28, 2019
    Posts:
    91
    Hi

    Is there a way to find the parameter type (bool, trigger etc) based on its name?

    I have a script that allows the user to choose a state from an enum and "trigger" it. However for a trigger that means triggering it, for a float that means asking for a value, for a bool that means settting it as True etc.

    So I need to know what the type is to handle it nicely.

    Any ideas?

    Olly