Announcement

Collapse
No announcement yet.

"Execute Javascript" blueprint node

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    "Execute Javascript" blueprint node

    I have been able to use the "Execute Javascript" node in UE4 Blueprint to do write "Hello World" when I pass the complete instruction via the "Script Text" as "document.write("hello world");". However, I don't see a way to pass this node a function call which function exists inside a script in the HTML itself. Is that even possible?

    I'm including the direct command that works, and the call for the function that doesn't.

    #2
    Is your javascript properly written?

    if you have something like

    Code:
    <script>
    function YourJSFunc()
    {
      //do things
    }
    </script>
    and you write YourJSFunc() in the BP node it will work



    Rama
    UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

    ♥ Rama

    Comment


      #3
      I see what happens. My lousy definition of this function didn't include the word "function" and even if such function will work within HTML, it will not work if it's called from Unreal Engine. Doh!

      Comment

      Working...
      X