12 lines
343 B
C#
12 lines
343 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class RemoveComponentName : MonoBehaviour {
|
|
public void RemoveComponents () {
|
|
MeshRenderer[] meshes = GetComponentsInChildren<MeshRenderer>();
|
|
foreach (MeshRenderer c in meshes) {
|
|
DestroyImmediate(c, true);
|
|
}
|
|
}
|
|
} |