I am working on a Unity project where I need to be able to grab an image from disk and then have it be replaced as the source image for an image gameobject. Currently I already have a filebrowser implemented that gives me the filepath.
if (File.Exists(output)){
GameOjbect imageselect = GameObject.Find("ImageSelection");
imageselect.GetComponent<Image>();
//I need to make the file location at path output be the sprite?/sourceimage? for imageselect
}
Sorry if this has already been asked, I have been looking at other examples this morning with no luck.