Announcement

Collapse
No announcement yet.

Fire BP Event from FRunnable, is this a workaround?

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

    Fire BP Event from FRunnable, is this a workaround?

    Following Rama's wiki tutorial about FRunnable I did a small thread system.

    My trouble is that I'm not so much happy on need to implement a TickCheck to see if the 2nd thread finished the task, and I would like to get a BP Event fired when it completes.

    Reading on answers, I've seen that BPs just does accepts events fired on the main game thread, so I thought about implement something like this:

    Click image for larger version

Name:	EventFromRunnableDiagram.jpg
Views:	1
Size:	133.2 KB
ID:	1144066

    I suppose this will work, but my questions are:

    1 - Since the Data I'll need to process is not the same I'll use when the event is fired do I need pass it as reference?
    2 - Do I can use the same method to "Fire" the Event and communicate the result or would be better make different methods to each?


    Thank you.
    VIDA - U4 Indie Goth Horror Game
    Project Thread
Working...
X