I’m working with Marco Vale’s 3D Pirate ship model in AhoyMatey. I want to change the color of the ship or it’s sails to red but I’m having difficulty finding the right shader. I can see that both the sales and the boat have a shader called pirateDiff and that there’s a Main Color setting that will change the overall color. However, I can’t seem to find the right code to change it when a player joins multiplay.
Anyone had any luck with this?
public override void OnStartLocalPlayer() {
GetComponentInChildren<Camera> ().enabled = true;
GetComponentInChildren<AudioListener> ().enabled = true;
GetComponentInChildren<MeshRenderer>(pirateDiff).material.color = Color.red;
}