Daniel Falci
Sign in Buy the course

Direct communication between Blueprints: references and Instance Editable

Direct communication is the most common method and works one to one: a Working Blueprint gets a reference to a Target Blueprint, usually through a variable of the target's type, and then reads its components and variables or calls its functions. The variable must be Instance Editable so you pick which instance of the target in the level it points to.

See the course Watch a free lesson

From the course

Taken from the hands-on project of the course; the lessons show every step on video.

What is direct communication?

A one-to-one link: the Working Blueprint requests access to the Target Blueprint. The simplest way is to get a reference to the target and use its publicly exposed components and variables, exchange information and call the target's functions.

The lamp example

How do I create the reference?

Why does the log say it could not access the light?

With direct communication you must say which instance of the target you want, because the scene can hold many instances of the same Blueprint. Make the variable public (Instance Editable), compile, and select the character in the level: the Details panel now has a field to pick the lamp instance. Pick instance 1 and pressing the key turns the light off.

Free PDFs that go with this page

One-page guides made from the lessons, sent by e-mail.

Frequently asked questions

What does direct communication need?

A reference to the exact instance of the target Blueprint.

Why is my reference empty and errors appear in the log?

Because no instance was selected. Make the variable Instance Editable and pick the instance in the Details panel.

Can I use it with many lamps?

Each variable points to one instance. For several instances at once, Cast To is more convenient.

Related guides

See the course