How to change RawImage texture to another one when i press a buton for it

Hi all, i am new to unity and i am stuck about this problem. I need to change texture od RawImage with second image with a press of a button. I am basicly trying to create to people chose about different item that would be in 2d game. I would like to create other scene that would have a different images of items and when i click on one of them it change the RawImage texture in game scene. I would really aprecitate any idea and help. Thank you in advance.

public GameObject imageDisplay; //Gameobject with rawImage
public Texture image; //Reference to a preset image

	public void DisplayImage(Texture texture)
	{
		imageDisplay.GetComponent<RawImage>().texture = texture; //Set texture to either image or a texture set in the button's onClick ui
	}

There are many ways to do this. but that’s one way to change texture of a rawimage