hey, so I’m making an interface to change an object’s materials, it’s really just a couple animated buttons on the screen, I made a widget blueprint with the buttons and a little scripted blueprint to animate them.
what confuses me is where to script the things I want. I was trying to make the widget create itself on it’s blueprint when I gave up because I couldn’t find the event beginplay node there. I had to search where the template was creating it’s interfaces and went from there, it has an actor blueprint with the menu being created there, so I tried to make my interface there and it worked, but it doesn’t sound very logical to me.
I mean, it’s a random sphere placed in the world creating an important thing such as a menu, is this how it works generally? I’d assume there should be some sort of general stuff blueprint or something.
and secondly, I wanted to make the buttons do something, so in the same place I was creating my interface (the random actor blueprint) I tried to have a button click event to do something, but couldn’t find it or summon it from there or whatever it’s called, so I went back to the widget blueprint and placed the actions there, so it kinda worked, but I had to place a “get all actors of class” node and find my object’s blueprint (the one I wanted to change the materials).
so it’s still a bit confusing, I don’t really know where to make stuff, and how to interact with things that are somewhere else, like an actor blueprint creating a widget interface that does something to another actor. I mean if I was going to try to figure it out, I’d make a variable for each material I want to change, and tell the buttons to switch that variable to another one, but that’s not how it works at all.
what is the proper way to set this up?