Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
does anyone know how to change the alignment of a 2d overlay using a behavior with js?

Nick_hivk
Guest
Quote
2023-06-20 19:02:19

The text is still center aligned, but when I run that command line there is no behavior, the text is left in multiline mode:
var overlay =ccbGetSceneNodeFromName("name")
ccbSetSceneNodeProperty(overlay,"Text",txt)


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact