SHARE
TWEET

Untitled

a guest Dec 9th, 2019 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static Transform[] GetChildren(this Transform transform, bool includeInactive = false)
  2.     {
  3.         return transform.GetComponentsInChildrenOnly<Transform>(includeInactive);
  4.     }
  5.  
  6.     public static Transform[] GetFirstChildren(this Transform transform, bool includeInactive = false)
  7.     {
  8.         return transform.GetComponentsInFirstChildrenOnly<Transform>(includeInactive);
  9.     }
  10.  
  11.     public static RectTransform[] GetChildren(this RectTransform transform, bool includeInactive = false)
  12.     {
  13.         return transform.GetComponentsInChildrenOnly<RectTransform>(includeInactive);
  14.     }
  15.  
  16.     public static RectTransform[] GetFirstChildren(this RectTransform transform, bool includeInactive = false)
  17.     {
  18.         return transform.GetComponentsInFirstChildrenOnly<RectTransform>(includeInactive);
  19.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top