Applying selected image to gameobject in next scene

Hey,

i have a scene where there are different choices of images and currently it doesnt do anything as i have been working on retrieving these images via a json file, but thats for another day.

I want to be able to select an image, which i already have a scene manager code attached to, to move to the next scene and then on the next scene, apply the image that was selected as a material of a quad that is in the scene.

Im not sure if its worth mentioning, or matters, but the quad is a child of another object, but i presume that as long as i give the game object a specific name, it shouldnt be a problem.

The difficult part is that i am only a beginner in c# but i have a developer in my office, who is FLUENT, but doesnt use unity so, obviously, some things are slightly different.

If you can take this into account when responding to this message it would be much appreciated.

Cheers

I’m not quite clear what exactly you’re wanting to do, but the typical ways you pass information between scene loads is either through static variables or on a component of a GameObject in which you’ve called DontDestroyOnLoad.

Hey,

So the easiest way to describe it is that you have a row of raw images on the screen and the textures/images displayed on the raw images are the results of a url link from a json file, so www.images.com/cat.jpg as an example.

So if i have a row of images, cat.jpeg, dog.jpeg, fish.jpeg.

I already have a script attached to them to make them buttons to go to the next scene, but what i want is, whatever image they selected, should be the texture/image that is displayed on the raw image in the next scene.

Cheers