calling javascript functions from code element

Q&A about the latest versions
Post Reply
HSharma​
Posts: 45
Joined: Wed Aug 02, 2017 2:32 pm

Hi Hopki/Thomas,
I have bought a beta version of Pano2VR7. I am using the new code element to do something like this below

I have a custom js, which I have included in my version of normal.ggt. The custom js is bundled using webpack. This custom js has a function called sendDataHandler().
Now, I have created a Code Element in skin editor. This has a function similar to this
function NodeChanged(eventWrapper) {
sendDataHandler(eventWrapper)
}

When I output my project, I can see in console the following error saying sendDataHandler is not defined.

Can you pls tell what I need to do?

thanks
Harsh
Post Reply