Announcement

Collapse
No announcement yet.

Referencing Child-Actor-Component's Actors from World

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

    Referencing Child-Actor-Component's Actors from World

    Okay so I have a problem

    Here is a simplified scenario:

    I have a light. I want the light to turn on when a button is pressed. The button is a child actor inside a buttonbox actor. In my light, I have a variable for an object reference to a button. I place both a light and a buttonbox in the world. I want to be able to set the button reference in my light in the details panel, but the button isn't listed since it's not directly in the world and is actually a child actor inside the buttonbox.

    Any ideas on what I can do?

    #2
    look up Interfaces and how to use them

    Comment


      #3
      Thanks for the quick response MostHost LA! Unfortunately I don't think an interface would work in this situation. The button doesn't have access to what it's activating, so can't really use an interface. I have it set up with an event dispatcher in the button and a bind event in the light, but in order to bind it, the light needs the button object reference :P.

      Comment

      Working...
      X