RemoveComponent
Removes a component of type T from a given build profile.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Build.Profile
- Assembly: UnityEditor.CoreModule
RemoveComponent<T>()
Removes a component of type from a given build profile.
Tpublic 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 from a given build profile.
Tpublic void RemoveComponent<T>(T objectToRemove) where T : Object
Parameters
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.