Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying an HTML and updating it using JS in realtime #70

Open
ghost opened this issue Nov 29, 2021 · 1 comment
Open

Displaying an HTML and updating it using JS in realtime #70

ghost opened this issue Nov 29, 2021 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Nov 29, 2021

Hello!

I've come across your project and it looks awesome!

I'm trying to display a basic HTML file (one with a header alone). and it works just fine - and it was real easy.

now I want to update the header in real-time using a JS script I have, I figured I need to use the "Execute Javascript with params" for that.

I tried placing it inside the widget - like so
image
and I didn't do anything, I did get the "after" printed when I ran the function, but nothing changed.

I also tried placing it inside a bp function- like so:
image
and when I try to run it - the engine crashes and gives "Exception_access_violation reading address 0X00000...."

I would highly appreciate any help in regards to how to run the Javascript to update the HTML in run time.

Thanks!

@getnamo
Copy link
Owner

getnamo commented Dec 14, 2021

Your BluEye may not be initialized when you call the function. I found I needed to delay the update call by a bit after begin play for the result to show up. Using e.g. BluiWorldWidgetActorExample child class and accessing it's BluEye via the widget in the event graph
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant