- Home /
Retrieving fields of a certain type
Hi, I'd just like to ask how I could identify which fields are of a certain type. The fields could be an array of that certain type or could be buried inside a serialized class. My concern is that I don't have any idea how I can check on what sort of elements an array takes without hardcoding for each script whose fields I check. I currently have a SerializedObject whose SerializedProperties I'm iterating through, but that's about the extent of what I know. Any ideas would be greatly appreciated. Thanks!
Your answer
Follow this Question
Related Questions
what is the correct syntax for the creation of arrays? 2 Answers
How do I get unity to tell me what type of variable a variable is? 1 Answer
Match strings from an array to fire specific UnityEvents? 2 Answers
Inspector arrays: Recognizing inherited type 1 Answer
.getComponent() creates an Instance? 1 Answer