Skip to content
Discussion options

You must be logged in to vote

I've been meaning to look at this but haven't got around to it.

There is a second issue as well: Text2d rendering isn't very optimised and it just extracts an individual sprite for each glyph. So with hundreds of labels you could be extracting tens of thousands of sprites.

As a temporary fix you could set up your own visibility system, Text2dBundle has a TextLayoutInfo component with a size field that contains the size of the text. You can use that to create a bounding box which you can test to if it's on screen and if not set it non-visible yourself.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Liam19
Comment options

Answer selected by Liam19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants