Connect two blueprints rooms to each other via public variables from editor

Hello, everyone!

I have a Blueprint class, which represents a room. I have created public variables to configure the room.
изображение

I need a way to connect two rooms by their specified door elements.
I have tried to achieve this by spawning a BP_Socket actor (it is my blueprint, which have two public variables with references on Parent and Connected rooms) in location of door frame by SpawnActorFromClass node. But the problem is that it isn’t possible to spawn actor in the ConstructionScript. Spawning a BP_Socket actor as a ChildActorComponent isn’t possible too because it won’t be possible to set references of BP_Socket actor since it will be a part of the room.

So, I will be grateful to you for your suggestions in solution to this problem.

Thank you in advance!

It may be time to look at blueprint scripting utilities:

1 Like