You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, great library, thanks for all the effort you put in :)
I'm trying to understand the basics of pixijs. Is it common to update texture.source or is the recommended way to always replace a texture.
// This works
sprite.texture =new Texture({ source: Texture.WHITE.source, frame: sprite.texture.frame });// This does not work (aka not updated immediately)
sprite.texture.source = Texture.WHITE.source;
Also tried in combination with update and updateUvs, but this seems to be triggered by setting the source anyway.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, great library, thanks for all the effort you put in :)
I'm trying to understand the basics of pixijs. Is it common to update texture.source or is the recommended way to always replace a texture.
Also tried in combination with update and updateUvs, but this seems to be triggered by setting the source anyway.
Beta Was this translation helpful? Give feedback.
All reactions