Jump to content

[SOLVED] set the font of engine.visualizer.renderMessage function


photo

Recommended Posts

Hi all:

 

I need to render message in chinese, I know the GUI have

function to set a font and render chinese text, but how to do this

use engine.visualizer? how to set the font to be used in

engine.visualizer.renderMessage2D/3D function?

I look around and didn't find any function to do this.

 

and another question:

Does engine.visualizer.renderMessage3D function have better perfermance

and run efficiency than Object_GUI + WidgetLable for display large number of place names?

 

please give some suggestions, thanks in advance!

Link to comment
I need to render message in chinese, I know the GUI have

function to set a font and render chinese text, but how to do this

use engine.visualizer? how to set the font to be used in

engine.visualizer.renderMessage2D/3D function?

I look around and didn't find any function to do this.

You can change a font that is used by default for your custom one: it's <UnigineSDK>/data/core/gui/font.ttf.

 

Does engine.visualizer.renderMessage3D function have better perfermance

and run efficiency than Object_GUI + WidgetLable for display large number of place names?

Our devs say both should be pretty much the same from performance point of view. What they did advise is to check where the player is and do not render names outside some radius around it (for example, disable all messages that are further than 100 meters). And additionally check if they are visible in the view frustum. This will allow to keep performance up even in case of many place names.

Link to comment
×
×
  • Create New...