Can I use a string to load an image in UI?
Hello,
I am creating an app that lets a user navigate a file browser in app, then having selected an image I would like to load that image into the scene, eventually I will like to create my own photo editing software.
The problem I have is that when the user has selected a file, it stores the file name using a ToString function, the file explorer closes and it opens a new UI Canvas in it's place. On this canvas, is there anyway of loading an image using the string I have stored? (It is all in the same scene)
I am not sure if this is allowed in one question but Is there also some way I can check to see if a JPG/PNG file has been selected?
Many thanks for any help or guidance that can be given!
Your answer
Follow this Question
Related Questions
Trouble With Image Loading Script 1 Answer
Swap UI Image from images Folder C# 1 Answer
Access a script with file path? 0 Answers
How do I enable CORS in my webgl game? 0 Answers
Destroy GameObject inconsistent with Instantiated children 1 Answer