# onAddSetting

> Optional callback that supplies the settings object when the settings are first added to a build profile.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor.Build.Profile](/engine/6000.7/script-reference/unityeditor/build/profile.md)
* **Assembly:** UnityEditor.BuildProfileModule

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

### Remarks

When [BuildProfileSettingsProvider.isStandaloneAsset](/engine/6000.7/script-reference/unityeditor/build/profile/buildprofilesettingsprovider/isstandaloneasset.md) 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.
