View Single Post
  #2  
Old 06-08-2015, 11:37 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Here's example code that uses the newline character to create multiple lines in a text object:

Code:
import viz
viz.go()

gallery = viz.addChild('gallery.osgb')

text = viz.addText('line 1\nline 2\nline 3',parent=viz.SCREEN,pos=[0.5,0.5,0])
text.alignment(viz.ALIGN_CENTER)
Reply With Quote