≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
changing 2doverlay variable from within click with custom js
Posted by:
(you are not logged in)
Enter the missing letter in: "I?ternational"
(you are not logged in)
Text:
[quote][b]hadoken[/b] wrote: @gree passing values from javascript variables to CopperCube editor variables can easily be done with ccbSetCopperCubeVariable(varname, value) command, e.g. by adding the following to your "Execute JavaScript" action: varexternal = "11111111"; ccbSetCopperCubeVariable("cc_varexternal", varexternal); then you must not pass "varexternal" but the extra created CopperCube variable in this example named "cc_varexternal" (which then should have the same value as "varexternal") to your 2d overlay using the built-in "Change 2d overlay Text" action with $cc_varexternal$ without creating an extra CopperCube variable for the editor you could also go the other way round by changing your 2d overlay text also directly by using another "Execute JavaScript" action with this: ccbSetSceneNodeProperty(ccbGetSceneNodeFromName("2D Overlay1"), "Text", varexternal);[/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