Search Unity

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.