≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Editable Text Overlay
Posted by:
(you are not logged in)
Enter the missing letter in: "In?ernational"
(you are not logged in)
Text:
[quote][b][/b] wrote: I'm not sure if it's possible to use built-in set text action, but you can do that using 'execute javascript'. Instead of 'change 2d overlay text' attach 'execute javascript' from special category. The action should be attached to the behavior attached to your 2d overlay node. Put the following code: [code]// Gets current node var thatNode = ccbGetCurrentNode(); // Gets name variable value var name = ccbGetCopperCubeVariable('PUT_YOUR_VARIABLE_NAME_HERE'); // Sets 2d overlay property ccbSetSceneNodeProperty(thatNode, 'Text', name);[/code] Make sure 'Draw Text' checkbox is checked under your 2d overlay node Attributes.[/quote]
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