Is it possible to access the enum of an object from a script on its parent, then convert it to a string?
I am making a card game-esque UI for my game and having drag and drop functionality is causing a lot of trouble. All of my cards have enums which contain their card ID (using their gameobject names was a pain too).
I'm looking for a way for the enum containing their card ID# to be converted to string so I can save that string to playerprefs OnDrop. Is that possible to do in a script on the parent object?
Your answer
![](https://koobas.hobune.stream/wayback/20220613015615im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Get String Not Allowed To Be Called from Mono Behaviour Constructor 0 Answers
My public enum isn't functioning like I want it to 0 Answers
Recognising different string inputs for same result (using "or" statements for strings) 1 Answer
How do I set the pivot to the exact position as parent object? 0 Answers
Lock rotation of child's specific axis? 0 Answers