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
  4. Dismiss Notice

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.