Announcement

Collapse
No announcement yet.

"Create Event" node

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

    "Create Event" node

    Do you know what is the function of this node?
    Couldn't find any info

    Click image for larger version

Name:	34319-capture.png
Views:	1
Size:	104.2 KB
ID:	1147292

    #2
    The Create Event node creates a single cast delegate (for coherent naming we decide not to use "delegate" word in blueprints). A single cast delegate contains an object and a function that can be called on the object. An Event Dispatcher is internally a set of delegates with the same signature (a set of parameters).
    Before you can choose a function in Create Event node you need to specify the object input (so the class of object is known) and the delegate output (so the signature of function is known).
    The delegate output in an Event (or Custom Event) node is implemented as Create Event node where Object input is connected to 'self' node.

    Comment


      #3
      Originally posted by kaziu View Post
      The Create Event node creates a single cast delegate (for coherent naming we decide not to use "delegate" word in blueprints). A single cast delegate contains an object and a function that can be called on the object. An Event Dispatcher is internally a set of delegates with the same signature (a set of parameters).
      Before you can choose a function in Create Event node you need to specify the object input (so the class of object is known) and the delegate output (so the signature of function is known).
      The delegate output in an Event (or Custom Event) node is implemented as Create Event node where Object input is connected to 'self' node.
      Is there in marketplace some examples? Read this post 5 times,but don't get how to create new event and bind it to OnDestroy event.

      Comment


        #4
        https://docs.unrealengine.com/latest...entDispatcher/
        https://www.casualdistractiongames.com

        Comment


          #5
          Agree with [MENTION=5564]Rusbaron[/MENTION] - I really can't get the idea of "The delegate output in an Event (or Custom Event) node is implemented as Create Event". Could you please explain a bit more detailed and also would be great if you could add some simple example of what entities are used, their signatures and how all this stuff is connected?

          Comment


            #6
            After spending some time I've got the following: Node="Create Event", Object="self", Select Function="previously created function with the signature matching the Event Dispatcher I want to subscribe to".
            So the node "Create Event" is basically the way to bind a function (class method) to Event Dispatcher (basically, the same as "Custom Event", but instead of an event a function is used). Signatures for Event Dispatcher and function should match, only then you can see you function in the list of possible functions.

            Comment

            Working...
            X