Why this does not work?

Hello!
I don’t really understand why changing the material color in the SetColor function doesn’t work.
image

Can someone explain me ?
Thank you

1 Like

Hi there, good questions.

I think this is due to where the code is running. SetColor only runs on the server, so you would only see the code run on the server version of the object. HandleDisplayColorUpdated doesn’t have the the [Server] attribute, so it can run on any client or server. Maybe you are seeing it on the client and it’s not being reflected. It also depends on where it is being called.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms