HoloLens 2 Gait Training
The purpose of this project is to create gait training application.
Loading...
Searching...
No Matches
RemoveAllComponents.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4
5public class RemoveAllComponents : MonoBehaviour
6{
11 {
12 foreach (var comp in this.gameObject.GetComponents<Component>())
13 {
14 if( ( comp is Transform ) != true && ( comp is RemoveAllComponents ) != true )
15 {
16 Destroy(comp);
17 }
18 }
19 }
20}