RemoveComponent
Removes a component of type T from a given build profile.
阅读时间1 分钟最后更新于 18 小时前
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
When you remove BuildProfileGraphicsSettings or BuildProfileQualitySettings, the build profile uses the global graphics settings or quality levels again. Unity destroys the removed object.
Note: This method is restricted to ScriptableObject types and doesn't support all settings visible in the Build Profiles window. To remove PlayerSettings, 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
When you remove BuildProfileGraphicsSettings or BuildProfileQualitySettings, the build profile uses the global graphics settings or quality levels again. Unity destroys the removed object.
Note: This method is restricted to ScriptableObject types and doesn't support all settings visible in the Build Profiles window. To remove PlayerSettings, use the Build Profiles window.