<aside> đź’ˇ

For this showcase I’ll setup the logic through blueprints, and showcase how they are setup in the world. This showcase only shows pure logic, In a future update I’ll add more samples.

</aside>

Setting up the Sender Object (Button):

  1. Create a blueprint actor.

    image.png

  2. Add the Sender Component

image.png

  1. Add the device RegistrationInterface in the class settings, and add any custom logic that needs to be implemented upon the object being registered.

    Note: Here you would add any functionality related to event bindings or visual changes to the owner of the component. Since I’m not adding any extra logic to the Sender, I’ll just print the registration status to the screen.

image.png

image.png

Setting up the Receiver Object (Light, door, ect…)

  1. Create a blueprint actor

    image.png

  2. Add the Receiver Component

image.png

  1. Add the device RegistrationInterface in the class settings, and add any custom logic that needs to be implemented upon the object being registered.

    Note: This object should bind to the centers OnCallReceived only when the object gets registered.

image.png

image.png

The logic tied to this “OnCallReceived” event is a simple function that changes the color of the object.

image.png

Setup your scene

  1. For this, I created a simple viewable scene for the demo. The scene showcases what should be a room with two Senders (one for each room), and four receivers (two in each room).

    image.png

  2. I then Made sure to go into the details panel of all the objects (those who have receiver and sender components), and set their ids to be the one for the room they’re supposed to be in

    Note: I’m only showing the images for two objects (one sender and one receiver) who’ve been set for Room 1, but I did add the ID to all the objects with their corresponding ID.