Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Funciones unity
- // funcion para destruir todos los hios de un objeto
- public void BorrarTodosHijos(RectTransform objeto){
- // recibimos un objeto y borramos todos sus hijos
- foreach (Transform child in objeto)
- {
- Destroy(child.gameObject);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement