ドキュメント

Unity Engine

Unity Engine

RemoveComponent

Removes a component of type T from a given build profile.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.