Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Get custom parameter via code

Discussion in 'Animation' started by Yurijh, Apr 17, 2023.

  1. Yurijh

    Yurijh

    Joined:
    Nov 4, 2016
    Posts:
    15
    I have an fbx created with maya, with animation clips containing custom parameters.
    I have imported correctly the fbx ticking the flag "Animated Custom Properties" but I don't know how to access the parameter via code.

    Someone posted about adding a float parameter to the animator with the same name of the custom parameter but that desn't work for me. The parameter doesn't change in the Animator even if I name it with the same name.

    Any suggestions?.
     
  2. Yurijh

    Yurijh

    Joined:
    Nov 4, 2016
    Posts:
    15
    Reimporting the model has worked, nevermind.