I missed point where I can get reference of levelblueprint (in an other blueprint). I need this to send a interface variable to levelblueprint.
Nobody knows? I search after this but didn’t found anything useful.
If it’s not possible, how to tell in an other blueprint target of interface?
Hey wARmAcH1n3,
You can’t reference a Level Blueprint from another Blueprint. reasoning behind this limitation is that a Blueprint can be reused inside another Level, and wouldn’t know what to reference when looking for Level Blueprint.
What specifically are you attempting to reference Level Blueprint for?
Hi ,
I made a button for switching light on and off. When I call Interface which sends after button is pressed, I need a target of blueprint which gets interface event.
Is it true that light switching have to be in level blueprint, because I don’t get reference to light in a standart blueprint only in level blueprint?
I forgot to tell, button is in another level as lights, which will switch on/off, how can do I that?
You definitely don’t need to use Level Blueprint for something like that. In fact, this is exactly what you would use a Blueprint Interface for, to communicate between Blueprints without using Level Blueprint or excessive Casting. There’s a really good summary of proper interaction between Blueprints in this video, which includes information on a basic Interface setup:
You could easily convert this to a light switch scenario. You don't need a reference to any specific item in any specific Blueprint. Instead, you use set up Interface Blueprint, set up function in each Blueprint you want to interact with (in this case your lights), and reference Interface in each. Then your button can just call that Interface. It should be fairly similar to example in video above.Hope that helps!