I want to have a system where I can give a specific visual on object referenced in an array, The problem I’m having right now is that while it is easy to change his material, I don’t know how to change it back if I remove the mesh from his array, It would be fairly easy to have a material array referencing the mesh array, but I would need to have a way to detect a removed from array kind of event, any Idea if it is possible?
That’s one of the reasons I like overriding SMCs, so they can handle logic:
You can now use those SMCs instead. Their material can be restored by calling an event and you do not need to worry about arrays and such.
Hope I got the intent correctly.
Sounds like a good place to set up getter/setter, or rather an equivalent for your array.
Instead of adding objects directly to the array via standard Array->Add/Remove nodes, make your array variable private if possible (might not be possible in bps… not sure), and set up two functions like “AddToArray” and “RemoveFromArray” to handle adding and removing from array along with your own additional logic.
thanks for the help but no I’m trying to do that with actors in the level, not the component of the blueprint
