Adding beams to an animation

Hello! I have a concept animation made for a little project I’m doing and it involves beams, I’ve used the beams in the animation since in Moon it allows you to toggle the beams “enabled” property however when I go in-game with the character the beam animations didn’t play, rather they stayed constant lines instead of turning off and on multiple times at a certain keyframe. I’ve tried looking for subjects that include the same issue however found nothing unfortunately, if someone could help me that’d be very much appreciated!

Example Animation:
https://gyazo.com/bd42c81997308a9d6731c15e1292e1d3

In-Game:
https://gyazo.com/c06573cb0e5863d93c46335522496ea0

If you need further explanation let me know in the comments!

1 Like

Moon Animation Suite’s effects features are primarily meant for cutscenes or for plotting out how you want to do effects. Animations themselves are uploaded as animation instances and the only purpose of an animation instance is to modify joints which have associated keyframes. You need to code in those beam toggles yourself according to how you set them up in your animation.

I strongly recommend using keyframe markers in your animation. Your event name should be something identifiable and the value should be if you want the beam effect on or off. You can then write a script that checks for when a keyframe marker of that aforementioned identifier is reached and then set the Enabled property of the beam to the received value (passed as a single argument to the signal returned from GetMarkerReachedSignal).

GetMarkerReachedSignal on the Developer Hub.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.