I have a (probably small) problem with my Blueprint. I’m trying to recreate a simple TicTacToe game.
What I have right now is a Blueprint with the models and every single panel in the array as Static Mesh Components inside. It looks like this:
I got everything working so far. The first Panel (1x1) switches the material according to what owner it has (0 = none, 1 = Circle, 2 = X) so generally my Blueprint is working.
What I wanted to do know is put that functionality on every single panel in the blueprint. So I took my existing Blueprint and converted it to a macro so I can reuse it for every panel. The important parts of the macro look like this:
The yellow line represents what connection I need. It basically checks what value the panel variable (for example 1x1) has and changes the material accordingly on the panels specific mesh (in this case of course 1x1).
So the main Blueprint looks like this:
Now, all I want to do is input the Static Mesh Component into each Macro so I can use it like I showed in the second picture. The problem is that the two types seem to be incompatible. Depending on what I set the macro input to I can either not input it into the macro at all or I can input it into the macro but the “Set Material” nodes inside the macros cannot use it.
So, how do I solve that? I’m sure it’s pretty easy but I cannot get behind it…
Thanks in advance!