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
With Pixi v6, we used to use the following pattern to create a sprite from a Text object:
const text = new Text(...);
const texture = new Sprite(text.texture);
This is some old code, I don't remember exactly the decision here, but I recall this being an optimization to avoid re-renders.
Is it possible to get the texture from the Text object still? Or should I change the pattern?
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
-
With Pixi v6, we used to use the following pattern to create a sprite from a Text object:
This is some old code, I don't remember exactly the decision here, but I recall this being an optimization to avoid re-renders.
Is it possible to get the
texture
from the Text object still? Or should I change the pattern?Beta Was this translation helpful? Give feedback.
All reactions