Networked colour change

Looking for a steer on this after spending a few hours to no avail.

I have a dedicated server/client setup (Linux/Android Quest2) and am trying to make each client change the colour of a necklace attached to their player pawn (avatar}. I can only get the change to happen when I use ‘run on owning client’ but obviously this means other clients dont see the change.

if I run on server as seen below nothing happens at all. I have set the colour variable to be replicated and the static mesh component that the material is applied to is replicated also.

Can someone tell me what I have missed here?

Many thanks,

Set the Colour Node to RepNotify and inside the RepNotify function add the Set Vector Parameters Value

Thankyou very much for this - would you be able to clarify where I would add the vector parameters value? It is a linear colour variable (see screenshot). thanks again!

Left Side you should see a Function called Colour RepNotify and you need to add that Set Vector inside there

I’m not getting anything with it yet - should i run ‘on owning client’ instead of ‘on server’ and replicate the colour ?

The only thing i can see similar to what you mention is the OnRep_Colour (indicated in screenshot).

Any further info would be massively appreciated – I cant get anything at all when i ‘run on server’ so was wondering if that part is wrong for changing the colour.

Before the Colour Node (Set w/Notify) Add a Switch has authority and then everything after Colour Node should be inside the OnRep_Colour

Do you mean like this?
It doesn’t work sadly.

Inside the RepNotify Screenshot - ac4d18f23280e8723f43af3eafe9ef3d - Gyazo

Thankyou for your help - do you mean like this?


You dont need all the Nodes before the Set w/Notify inside the Rep notify function you just need the Set Vector Parameters Value, To get the Dynamic Material Instance promote it to a variable

I understand that but how do i keep this connection?


Like this

Screenshot - 3fef2039fde8ac08779ce655e92d1317 - Gyazo - Event Graph
Screenshot - a96044da8651c22840c25b97f2aec645 - Gyazo - OnRep Colour

Very kind for you to share this ty. Is that new variable a ‘material instance dynamic’ and presumably it is ‘replicated’?

The varibale Material instnace Dynamic dont need to be replicated, its the change that need to be which it does through repnotify

I did set it up like this but it still doesn’t work. Maybe i should run the custom event as ‘owning client’ instead of server?


Switch on Authority - Authority is Server also you dont need it inside the OnRepColour

I made that change but still no joy - it doesn’t change colour even for client…just nothing. I made a hacky solution for now but will keep trying to make this work – any other idea let me know.

https://youtu.be/4Tnbf44NjXo - part 1
https://youtu.be/-mYU5skMQNk - part 2
https://youtu.be/BJh_R2zCCdk - part 3 Replication Explained

Thank you for this and all your previous advice, it is very much appreciated!