文档

Unity Engine

Unity Engine

onAddSetting

Optional callback that supplies the settings object when the settings are first added to a build profile.
阅读时间1 分钟最后更新于 1 个月前

Definition

public Func<BuildProfile, ScriptableObject> onAddSetting { get; set; }

Remarks

When BuildProfileSettingsProvider.isStandaloneAsset is true, the callback returns an existing asset in your project for the build profile to reference. Otherwise, the callback returns a new object that Unity stores inside the build profile.