Class ExportServices
Class ExportServices.
Namespace: Unity.Industrial.Forma.Editor.UI.Service
Syntax
[MovedFrom(true, "UnityEngine.Industrial.Configuring.Editor", "Unity.Industrial.Configurator.Editor", null)]
public static class ExportServices
Methods
CreateNewExportProfileAsset()
Creates the new BuildProfile asset.
Declaration
public static BuildProfile CreateNewExportProfileAsset()
Returns
Type | Description |
---|---|
BuildProfile | BuildProfile. |
CreateNewExportProfileAssetAtPath(String)
Creates the new BuildProfile asset at path.
Declaration
public static BuildProfile CreateNewExportProfileAssetAtPath(string assetPath)
Parameters
Type | Name | Description |
---|---|---|
String | assetPath | The asset path. |
Returns
Type | Description |
---|---|
BuildProfile | BuildProfile. |
EnsureProductCatalogExists(BuildProfile)
Ensures the product catalog exists.
Declaration
public static ExportableProductCatalog EnsureProductCatalogExists(BuildProfile buildProfile)
Parameters
Type | Name | Description |
---|---|---|
BuildProfile | buildProfile | The build profile. |
Returns
Type | Description |
---|---|
ExportableProductCatalog | ExportableProductCatalog. |
EnsureProductExistsInProfile(BuildProfile, IEnumerable<Product>)
Ensures the product exists in profile.
Declaration
public static void EnsureProductExistsInProfile(BuildProfile buildProfile, IEnumerable<Product> products)
Parameters
Type | Name | Description |
---|---|---|
BuildProfile | buildProfile | The build profile. |
IEnumerable<Product> | products | The products. |
FindAllCompatibilitySettingAssets()
Finds all compatibility setting assets.
Declaration
public static List<CompatibilitySettingsAsset> FindAllCompatibilitySettingAssets()
Returns
Type | Description |
---|---|
List<CompatibilitySettingsAsset> | List<CompatibilitySetting>. |
FindAllDefaultCompatibilitySettingAssets()
Finds all Forma default compatibility setting assets.
Declaration
public static List<CompatibilitySettingsAsset> FindAllDefaultCompatibilitySettingAssets()
Returns
Type | Description |
---|---|
List<CompatibilitySettingsAsset> | List<CompatibilitySetting>. |
FindAllExportProfileAssets()
Finds all BuildProfile assets.
Declaration
public static List<BuildProfile> FindAllExportProfileAssets()
Returns
Type | Description |
---|---|
List<BuildProfile> | List<BuildProfile>. |
FindExportProfileById(String)
Finds the BuildProfile by identifier.
Declaration
public static BuildProfile FindExportProfileById(string profileId)
Parameters
Type | Name | Description |
---|---|---|
String | profileId | The profile identifier. |
Returns
Type | Description |
---|---|
BuildProfile | BuildProfile. |
FindExportProfileByName(String)
Finds the BuildProfile by name.
Declaration
public static BuildProfile FindExportProfileByName(string profileId)
Parameters
Type | Name | Description |
---|---|---|
String | profileId | The profile identifier. |
Returns
Type | Description |
---|---|
BuildProfile | BuildProfile. |
GetDefaultCompatibilitySettings(RenderPipelineType, String)
Declaration
public static CompatibilitySettingsAsset GetDefaultCompatibilitySettings(RenderPipelineType renderPipelineType, string selectedBuildTargetDisplayName)
Parameters
Type | Name | Description |
---|---|---|
RenderPipelineType | renderPipelineType | |
String | selectedBuildTargetDisplayName |
Returns
Type | Description |
---|---|
CompatibilitySettingsAsset |
RemoveNonProfileItems(IEnumerable<BuildProfile>)
Removes the non profile items.
Declaration
public static void RemoveNonProfileItems(IEnumerable<BuildProfile> exportProfiles)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<BuildProfile> | exportProfiles | The build profiles. |
RemoveNonProfileItems(ExportableProductCatalog, ConfiguratorProfile)
Removes the non profile items.
Declaration
public static void RemoveNonProfileItems(ExportableProductCatalog catalog, ConfiguratorProfile profile)
Parameters
Type | Name | Description |
---|---|---|
ExportableProductCatalog | catalog | The catalog. |
ConfiguratorProfile | profile | The profile. |
RemoveNonProfileItems(BuildProfile)
Removes the non profile items.
Declaration
public static void RemoveNonProfileItems(BuildProfile buildProfile)
Parameters
Type | Name | Description |
---|---|---|
BuildProfile | buildProfile | The build profile. |