Esempio n. 1
0
 /// <summary>
 /// Removes a component from the scene object. If there are multiple components matching the type, only the first
 /// one found is removed.
 /// </summary>
 /// <param name="type">Type of the component to remove. Includes any components derived from the type.</param>
 public void RemoveComponent(Type type)
 {
     Component.Internal_RemoveComponent(this, type);
 }
Esempio n. 2
0
 /// <summary>
 /// Removes a component from the scene object. If there are multiple components matching the type, only the first
 /// one found is removed.
 /// </summary>
 /// <typeparam name="T">Type of the component to remove. Includes any components derived from the type.</typeparam>
 public void RemoveComponent <T>() where T : Component
 {
     Component.Internal_RemoveComponent(this, typeof(T));
 }