Class CompatibilitySettingExtensions
Editor extensions for the CompatibilitySetting class
Namespace: Unity.Industrial.Forma.Editor.UI.Components
Syntax
[MovedFrom(true, "UnityEngine.Industrial.Configuring.Editor", "Unity.Industrial.Configurator.Editor", null)]
public static class CompatibilitySettingExtensions
Methods
ApplyAllSettings(CompatibilitySettingsAsset, BuildProfile, Boolean)
Apply all the settings found in the Compatibility Setting asset.
Declaration
public static bool ApplyAllSettings(this CompatibilitySettingsAsset compatibilitySettingsAsset, BuildProfile buildProfile, bool showDialog = false)
Parameters
Type | Name | Description |
---|---|---|
CompatibilitySettingsAsset | compatibilitySettingsAsset | Compatibility Setting |
BuildProfile | buildProfile | Build Profile |
Boolean | showDialog | Show setting dialog |
Returns
Type | Description |
---|---|
Boolean | Settings were applied |
IsAllSettingsApplied(CompatibilitySettingsAsset, BuildProfile)
Check if all the settings found in the Compatibility Setting asset are currently applied.
Declaration
public static bool IsAllSettingsApplied(this CompatibilitySettingsAsset compatibilitySettingsAsset, BuildProfile buildProfile)
Parameters
Type | Name | Description |
---|---|---|
CompatibilitySettingsAsset | compatibilitySettingsAsset | Compatibility Setting |
BuildProfile | buildProfile | Build Profile |
Returns
Type | Description |
---|---|
Boolean | Settings are all applied |
IsCompatibleWithBuildProfile(CompatibilitySettingsAsset, BuildProfile)
Check if a Compatibility Setting asset match a build profile.
Declaration
public static bool IsCompatibleWithBuildProfile(this CompatibilitySettingsAsset compatibilitySettingsAsset, BuildProfile buildProfile)
Parameters
Type | Name | Description |
---|---|---|
CompatibilitySettingsAsset | compatibilitySettingsAsset | Compatibility Setting |
BuildProfile | buildProfile | Build Profile |
Returns
Type | Description |
---|---|
Boolean |