im stuck on this one, i just want to load images through path string. The image loading isnt the problem here the problem is that i dont know why both variables are the same but just one 'exists'.
I used to open a folder to select the image but i changed my mind and just wanted the path input through InputField. Like "C:\Users\NAME\Images\bunnys.png" (idk)
And then it went weird..
for example i got my string variable called "imagePath" which is connected with my InputField. on the other side i got a string variable called "imagePath2" which gets the path through "EditorUtillity.OpenFilePanel"
using EditorUnity;
imagePath2 = EditorUtility.OpenFilePanel("Explorer", "", "png");
If i printing out both variables after input. I get 1:1 the same values I:/Images/finish.png | I:/Images/finish.png on the left is "imagePath" and on the right is "imagePath2"
So i checked if these paths (which are the same paths) exists
if(File.Exists(imagePath)){
Debug.Log("imagePath does exist");
}
if(File.Exists(imagePath2)){
Debug.Log("imagePath2 does exist");
}
for some reason "imagePath" does not exists while "imagePath2" does. But WHY?!