I’m relatively new to Unreal programming and have been trying on and off for weeks to get my Slider Widget to communicate and scale many blueprints with static mesh actors within.
This is to allow me to scale either all my Heirarchical instanced static mesh actors, or PCG actors from the slider when in game.
What I’m trying to do is show a number of Blueprint Actor trees grow over time, so you can set the slider to year, and this will update each blueprint actor, and as some trees grow faster than others, each blueprint actor would need a slightly different scale maths based on the year/age
Give the tree a tag, optionally add extra tags to the specific trees if you need to identify them or fetch only some trees (maybe we’re ready to harvest all cherries)
have the widget with a slider send the time update to all trees (or some trees based on their tags):
I have followed your steps and got it working, however I guess I’ve made a mistake as only one of my 3 child static mesh actor scales at a time. and has something to do with the one I currently have selected.as is the last I created.
Re: the blue ↓? node - not sure how you grow trees, I used a Timer to demo it - not necessarily the best way to grow trees. Focusing on the comms/architecture. The node, however, is a Timer Handle - it holds its data, can be used to pause, query remaining time, reset it and so on.
ensure the instances have growth rate other than 0
ensure they all have a tag
ensure they are present in the world when the widget initialises and binds the dispatcher
This will not work for dynamically spawned trees (not as is), you’d need to bind dynamically.