ドキュメント

Unity Engine

Unity Engine

AddComponent<T>(T)

Adds a ScriptableObject to the build profile as a sub-asset. Only one instance per type can be embedded within a build profile.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public void AddComponent<T>(T objectToAdd) where T : Object

Parameters

objectToAdd

T
ScriptableObject instance to add.

Remarks

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