ContainerUtil.cs 439 B

12345678910111213141516171819
  1. using System.IO.IsolatedStorage;
  2. using UnityEngine;
  3. namespace Plugins.CxShine.UIUtil
  4. {
  5. public class ContainerUtil
  6. {
  7. public static void RemoveAllChild(MonoBehaviour be,Transform tr)
  8. {
  9. for (int i = 0; i < tr.childCount; i++)
  10. {
  11. tr.GetChild(i).gameObject.SetActive(false);
  12. // tr.GetChild(i).gameObject.de
  13. }
  14. }
  15. }
  16. }