Hey guys I have got some errors at runtime and from what I can figure out the ‘NewParam’ node errors are because the for each loop has errors that the variables are not set so there is nothing to access. This is in the construction script I wanted to have the ability to change the materials with a Enum switch and that part works fine. I have seen that putting a isvalid node might be able to solve my issues but I am a bit unsure about it, firstly would I need to put it after every static mesh component reference before they get made into an array? And secondly if this solved the error, would it result in my model being untextured at runtime?
I am also wondering why they have trouble being accessed at runtime, they are all static mesh components, and they haven’t been spawned in, they were added in the actor blueprint with the + button on the left hand side ‘add actor component’, so how can they ever be ‘none’
Thanks for reading!


