I’m trying to change cloud material parameter of volumetric cloud component (using simple clouds material from plugin) like below, but nothing happens. It seems to work different than how it works for meshes. I didn’t find anything about this being a problem for anyone else though for some reason. So I must be doing something wrong, but I can’t figure it out. I only found one place on the Unreal Source Discord where someone asked how to do it in C++ that you have to set the material again to the dynamic instance, but that still didn’t do anything for me. Now I am clueless.
[Edit] Even though the highlighted solution didn’t actually fix it in my special case, it still is a correct and good answer and shows how it is working. See my comment below for my special problem.
As a next step, I’d recommend just double checking a few things:
Are you sure the code is running? Could check by placing a breakpoint on any of the nodes with F9.
Is there more than one VolumetricCloud object in your scene? Since you’re grabbing an array of them, but just editing the parameters of the first one in that scene, that could cause confusion if there’s more than one.
Is your VolumetricCloud object in your scene before this code is run? If it was being added dynamically for some reason, and this code ran first, it should throw an error.
Double check that there isn’t an extra space at the end of “WeatherUVScale.” If it’s set to "WeatherUVScale " (with a space) it won’t work.
wow, I just fixed it by deleting the cloud component from the scene and replacing it by a new one freshly added from the menu.
I hate how this sometimes happens, when you changed something on a blueprint, but it won’t work properly until you delete and replace it with the same blueprint. I didn’t realize that this could also happen for such a component where I just changed the material. Don’t ask how long it took to find this
Anyway, thanks for your tips! They can still be helpful for others and you showing that it actually is supposed to work like that, motivated me to have a look again to find the issue in my case