So this is a bit of an odd one I think, but bare with me here while I explain everything.
Basically I’ve set up an actor that has 10-12 Planes all set with partially transparent materials, all 0.01 units separated to create a sort of illusion of layers similar to art programs. This allows me to change the materials of each layer and the material colours of each layer to randomize things for when I spawn the actor. (They’re flat creatures with different markings, base colours, eye colours, etc). I am creating dynamic materials and adding them to variables in order to colour them and save them.
I have saved everything into a struct when someone clicks a button near a spawned actor, in order to call it later when spawning a saved/caught creature. (Don’t mind the cast to, I’m removing that I know it’s redundant)
This actor is where all the randomization happens. All of that is working (if you need visuals on those just ask me, but it’s too much to post in this initial post)
I then have a copy of the creature actor that only creates the dynamic materials for the markings, base colour, eyes, etc. and turns them into variables to use elsewhere.
So: I have Actor A with dynamic materials that randomize colour and then save those randomized colours into variables seen in the pic above, and I have Actor B that creates dynamic materials to then call later so I can set those materials in Actor B using Actor A’s saved information.
Now here’s the problem I have: All the marking colours work fine, but the primary, secondary and eyes are all randomizing colours when I spawn Actor B instead of taking from the struct that was saved.
Here’s what I have for loading the struct information (the spawn actor is spawning and getting information from Actor B) (I hope this image works it’s long…)
And here’s where I’m setting the dynamic materials for the markings (first image) and the primary/secondary/eyes (second image)
Please feel absolutely free to tell me if I’m doing anything dumb here, I’m still fairly new at things. Also if you need any extra info please let me know I have no idea if I gave enough.