Announcement

Collapse
No announcement yet.

Getting custom events in a subclass

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

    Getting custom events in a subclass

    I want to check something with you guys.

    I have a BP with a custom event in it. I have done a subclass BP of this thing, and I can't get the custom event in the subclass. Whether I bind it in the parent or the subclass or both, only the parent gets the event.

    Should I expect this behavior, or am I doing something wrong?

    #2
    You need to Override the function in the Child class.

    Parent
    Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	173.1 KB
ID:	1091961

    Child
    Click image for larger version

Name:	Capture2.JPG
Views:	1
Size:	168.4 KB
ID:	1091962

    Create your custom event within the Parent class and then in your Child class use the Override dropdown button that appears on the left in the Functions component to create an Override for the custom event you declared in your Parent class.
    Im an Moderator on UnrealSlackers Discord! Which is a Community driven group of likeminded people here to discuss UE4! Join UnrealSlackers on Discord!

    Comment


      #3
      You should be able to cast to the parent from the child blueprint

      Comment


        #4
        Ok, that override thing worked. I thought I had looked for that, must have missed the event name in the override list. Thanks!

        Comment

        Working...
        X