Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RemoveComponent

Removes a component of type T from a given build profile.
Read time 1 minuteLast updated 7 days ago

Definition

RemoveComponent<T>()

Removes a component of type
T
from a given build profile.
public void RemoveComponent<T>() where T : Object

Remarks

Note: This function is restricted to ScriptableObject types and cannot be used for all settings visible in the Build Profiles window. To remove built-in settings such as PlayerSettings, GraphicsSettings, and QualitySettings, use the Build Profiles window.

RemoveComponent<T>(T)

Removes a component of type
T
from a given build profile.
public void RemoveComponent<T>(T objectToRemove) where T : Object

Parameters

objectToRemove

T
Specific instance to remove. Must already be part of the current profile.

Remarks

Note: This function is restricted to ScriptableObject types and cannot be used for all settings visible in the Build Profiles window. To remove built-in settings such as PlayerSettings, GraphicsSettings, and QualitySettings, use the Build Profiles window.