I was following a tutorial on using GameInstance. Where the guy in the video would teach how to choose the color of the ship by clicking a button on a level (x), so as to affect the ship on another level (y).
LINK OF VIDEO (in portuguese):
https://www.youtube.com/watch?v=kTiCjPHMJXI&list=PLnwVxZ2WVVpl1sOPaEzK--4fXzq2ZQvE-&index=42
LEVEL X:
CODE OF BLUEPRINT MENU OF LEVEL X (when buttons are clicked):
This code is associated with an enumeration with these three colors (red, green and blue).
My problem appears when I set the target in the function (Set Scalar Parameter Value), it only appears these options for me:
Much like the problem this person had:
In the video it can give a "get" in the variable, which later (apparently) I discovered to be a reference to the object:
I made the "discovery" based on the sign (blue circle):
I did tests with the "blue circles" type variables, but the ones I did did not work.
https://answers.unrealengine.com/questions/169593/how-to-properly-set-vector-parameter-value.html
I would like to know what I have to do so that the referral is done correctly.
Another link that I researched, but that did not help me much.
EDIT 1 (attempt based on Stephen's answer)
**I created a material instance and put it right after the Event Begin Play (I found 2 options, so I did the test with both).
Available Options:
Blueprint:
I defined them as editable, just as I was instructed.
But even so, I could not:
I could not connect the nodes. Warning "Material Intance Dynamic Object Reference is not compatible with Material Parameter Collection Object Reference" is displayed.