Closed PraxTube closed 3 months ago
I think this mirrors the Unity behavior, but I'm not sure. define
used to be a bit different in previous versions of Yarn Spinner and this might be a leftover from back then. There's a big possibility that Yarn Spinner V3 will address this. Will investigate :)
Okay so I kinda forgot that I was still on Bevy 0.12 (and yarnspinner 0.1), I just tested this on Bevy 0.14 and yarnspinner 0.3.1 and this works there.
Great :D
I am trying to get variables from yarn into Bevy. The following
works fine if I use
However I get the following error when I use
gives
I don't really see why the behaviour would differ. The variable works fine inside of yarn when using declare. The yarn docs also don't really mention any difference in this regard. I thought the only difference between
declare
andset
is that the former doesn't allow to declare the same variable multiple times, but is this wrong? Are there other differences between these two commands?