I have a problem with my blueprint communication. I want to chose in my main menu between 2 models.
So this is the way i’m trying this:
- In my main menu I have 2 buttons (1 for each model), when pressed it sets a variable from my pawn-blueprint to a specific class (see image below):
-
For example: If you clicked on ButtonModel1, the variable needs to be set to the actor: ‘Actortest’
-
Then the MainMenu removes itself from the viewport(/parent)
-
In my pawn-blueprint when clicked in the world it should spawn an Actor, which has as input the variable set in the MainMenu. See image below:
- At this point I am not sure what it does, because the blueprint takes the default value of the variable and not the variable which was set (in our example ‘Actortest’).
I think the communication between those 2 blueprints doesn’t really work. But I don’t know how to fix this. So help is appriciated.
Thanks in advance!