- Home /
Is there a way for an asset to set a variable to its own file name?
I'm creating assets which are, let's say, Adventurers. I create an Adventurer, and they have a string AdventurerName. I, ideally, will have this string AdventurerName always equal to the file name of the asset. Is there an easy way to automatically, on creation, set the string AdventurerName to the name of the file?
Thank you!
Comment
Your answer
Follow this Question
Related Questions
Asset Bundle cant have multiple files with the same name? 0 Answers
Loading an asset from an Asset Bundle without a file extention 0 Answers
How to load and switch between (800+) sprites efficiently 0 Answers
Path for Assets/Textures folder File in Android 2 Answers
Can't drag & drop assets 0 Answers