Changing a texture when the player is close

So i am trying to make a camera system with 2 different feeds, i have a thin box collider on the player and when the box collider touches the collider of the camera changes the texture of something if that feed is selected, the script explains it better i think.

#pragma strict

		var Feed_1 = false;
		var Feed_2 = false;
	

	function OnTriggerEnter(Collider){
		if (Feed_1 == true){
			//when a camera is touching the box collider swich the texture to that camera's rendertexture and deactivate the text
		}
		if (Feed_2 == true){
			//when a camera is touching the box collider swich the texture to that camera's rendertexture and deactivate the text
		}
		//feeds will be the same if there is only one camera in range and if 2 are in range whichever touched first is feed 1
};

Is someone able to help?

There’s a few details missing from your description, but it sounds like essentially you’re looking for this within your OnTriggerEnter function:

thingThatYouWantToChangeTheTextureOf.GetComponent<Renderer>().sharedMaterial.mainTexture = textureThatYouWantToChangeItTo;