Question by
MomkeyDev · Aug 23, 2020 at 10:04 AM ·
gameobjectcolorcolor changereferencing
can you control 2 gameobject color values without having to reference both ?
I have 2 gameobject in the scene, the only difference is that one is just a graphic, and the other is an interactable (Like a pickable object). i want to change the color values of both the dup and the real, but i just wonder can i do it without having to reference both game object ?
Comment
Do the objects share the same material? If not, I don't see any solution.
Why can't you (or don't you want to) reference the two objects?
sorry for late reply, yeah i just want to have 2 identical game object that shares value, i could use array and the loop them both, but im just wondering if there's more intuitive way