Finally, i can get all the components in 'GameSceneRoot'
Code: Select all
Component[] components = gameSceneRoot.GetComponentsInChildren<Component>(true);
foreach (Component c in components)
{
Debug.Log(c.name + " " + c.GetType().ToString());
}
However, I don't know how to save it using ES3.Save<T> as i cannot pass the type to T...
One more question to ask, is it the right direction? Am I suppose to loop a GameObject by myself ?
As I would like to have a simple one line command to save the entire target (GameObject) by purchasing a plugin to do with