I'm wondering if there is a simple way to store the path of a texture in a string. I'm wondering this because I'm using a save system for a game where I need to store the path of a texture in a file to later load it. I've tried using Texture2D.Name but that just returns "" or null. If I can't get the full path that's okay, but at the very least I'd like to have the name of the texture.
EDIT: I think I explained it a bit bad or I don't understand the answers properly, I'll give explaining a new try.
I've made a script that will save the Position, HP etc for an "Enemy" class. This then gets stored in a .txt file on the \My Documents folder. Once I want to load the information back in I create a new instance of an Enemy(Vector2, int). Then I load the information and use an int.Parse to convert my string to an int > new Enemy(new Vector2(int.Parse(string1), int.Parse(string2)), int.Parse(string3)) <
What I then want is to somehow save the name of the texture to later load it back in using a similar method mentioned above. (Retrieve it from a .txt as a string)