[bug] 4.4 can't set variables from notify

Repro:

  • Create animation notify blueprint, (which have start and end events),
  • Create new blueprint extending from Character,
  • Add variable to it,
  • Open notify blueprint and In Received Notify Begin cast to your character and set some variable,
  • You will get compile error.

Hey -

Is your blueprint/variable defined in code? Looking at the screenshot it seems that the variable you’re trying to set is set to constant. As for setting variables in an animation notify, does this still occur for you in 4.6?

Cheers

Variable is declared in blueprints, and it’s set to editable (checked both)

Can’t test in 4.6 because we are releasing the game with 4.5.1 (can’t update to 4.6 right now) - if you have 4.6 downloaded/installed this is quick to reproduce.

Hey -

I was able to reproduce the compile error on my machine and found that this bug is fixed on our internal branch. This fix will be included in a future release of the engine. As a workaround you could try casting from the animation notify to a function inside the character blueprint and use the function to set the variable as needed.

Cheers

Hey Doug_E
I found that it still exist in 4.27d