T[] GetTargets <T>() where T : Component
 {
     if (m_settings.Scope == ExportScope.TargetBranch && TargetBranch != null)
     {
         return(TargetBranch.GetComponentsInChildren <T>());
     }
     else
     {
         return(GameObject.FindObjectsOfType <T>());
     }
 }
 Component[] GetTargets(Type type)
 {
     if (m_settings.Scope == ExportScope.TargetBranch && TargetBranch != null)
     {
         return(TargetBranch.GetComponentsInChildren(type));
     }
     else
     {
         return(Array.ConvertAll <UnityEngine.Object, Component>(GameObject.FindObjectsOfType(type), e => (Component)e));
     }
 }
 public override string ToString()
 {
     return(TargetBranch.ToString());
 }