Jump to content

Generate texture from text.


scheffgames
 Share

Recommended Posts

Hi! Is it possible to somehow generate a texture from a phaser text object? I know about bitmap fonts - it's not what I'm looking for though - I want to dynamically create text (custom language, size, etc) and convert it into a texture mainly for performance reasons and other future manipulation. Something like Graphics.generateTexture().

Searched the text docs - can't seem to find what I'm looking for. 

Thanks!

Link to comment
Share on other sites

4 minutes ago, samme said:

Phaser.Text actually has a generateTexture() method, undocumented I guess.

Thanks @samme, indeed it does, though it's not in the  docs. Not showing in the inspector either. Any idea how I can find these "hidden" methods and props - aside from reading and understanding the source code?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...