I've been all over the PIXI Documentation, and have googled around for a few hours looking for an answer to this. I'm making a custom Text Manager for the project I'm working on. I can get it to do everything I want so far, but I'm having trouble with this one thing.
I want to be able to change the color of individual words in a PIXI.Text object.
From what I've researched, it doesn't seem possible to do it with one PIXI.Text object. When I change anything about the style(PIXI.TextStyle object), it affects all of the text.
So lets say I have the sentence
"I am going to go watch old people use stairs"
and I wanted to affect the style of just the words 'old people'
is there any way to do this without having to go through the headache of using and positioning multiple PIXI.Text objects? I'm using wordwrap as part of the style, and I'm even using a PIXI.TextMetrics object to measure the text ahead of time, and reading the .lines property of it to avoid printing a wrapped word on it's initial line, and just wrapping it instantly.
So it would be great if I didn't have to use a bunch of extra Text objects and position them.
Any ideas?
I want to be able to change the color of individual words in a PIXI.Text object.
From what I've researched, it doesn't seem possible to do it with one PIXI.Text object. When I change anything about the style(PIXI.TextStyle object), it affects all of the text.
So lets say I have the sentence
"I am going to go watch old people use stairs"
and I wanted to affect the style of just the words 'old people'
is there any way to do this without having to go through the headache of using and positioning multiple PIXI.Text objects? I'm using wordwrap as part of the style, and I'm even using a PIXI.TextMetrics object to measure the text ahead of time, and reading the .lines property of it to avoid printing a wrapped word on it's initial line, and just wrapping it instantly.
So it would be great if I didn't have to use a bunch of extra Text objects and position them.
Any ideas?