- Home /
Implementing GetComponent or accessing children from SerializableObjects
I'm trying to build a SerializableObject that has the ability to parse its children and grab their references. Because SerializableObject doesn't extend GameObject, and GameObject is where GetComponent is implemented, I can't get it to work. Does anyone have a workaround for this?
Thanks in advance
Answer by dylanfries · Jun 13, 2012 at 02:16 PM
I realized my own answer. SerializedObjects don't actually exist in the hierarchy so they can't have children. That's what I think right now anyways.
Your answer
Follow this Question
Related Questions
Get the child gameObject of a parent and not the Transform 4 Answers
enable and disable boxcollider (whats wrong with my script?) 2 Answers
How to save/load references to components and prefabs 1 Answer
Only change a variable on the instaniated object not the prefab. 0 Answers
fix script to get C# var from another object instead of object this script is attached to 2 Answers