Download

Set Paper Sprite in run time

Hello, trying to change a sprite on run time, it used to work until I made the blueprint a child blueprint of another blueprint but as much as I can tell the properties are the same on the parent class as they were on the child. after some digging apparently the set sprite can only succeed when mobility is set to stationary… but it is, and I cant force it to be in the blueprint as there is only ‘get mobility’ not ‘set mobility’ blueprint. It is running this code as I output the result from set sprite and it always is return fail.

714ee7fa182ed78ee955d847d2002751796e82bf.png

The screenshot shows that SpriteComponent mobility is Static , so it can’t change during runtime!

omg I got static and stationary confused… that was so simple… thanks!