BuildProfileSettingsProvider
Provides the display information for a custom settings section in the Build Profile window.
Read time 1 minuteLast updated 14 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Build.Profile
- Assembly: UnityEditor.BuildProfileModule
public class BuildProfileSettingsProvider
Remarks
Additional Resources: BuildProfileSettingsProviderAttribute.
Examples
using UnityEngine;using UnityEditor.Build.Profile;class SampleSettings : ScriptableObject{ public bool myBoolSetting; [BuildProfileSettingsProvider(typeof(SampleSettings))] static BuildProfileSettingsProvider createProvider() => new BuildProfileSettingsProvider("MySampleSettings") { tooltip = "Sample settings provider for a ScriptableObject." };}
Properties
Property | Description |
|---|---|
| canAddSetting | Callback that determines if the settings object this provider describes can be added to the given build profile. |
| displayName | Display name for the settings section in the Build Profile window. |
| hasCustomEditor | When the value is true, Unity uses a custom implementation of an Editor. Otherwise, Unity displays the default inspector for the settings object. |
| tooltip | Tooltip text for the custom settings section. If this value is empty, no tooltip is displayed. |