Class RuntimeServices
Series of services that can be used in editor or editor play mode
Namespace: UnityEditor.Industrial.Configuring.UI
Syntax
public static class RuntimeServices
Methods
DirtyActiveScene()
Dirties the active scene.
Declaration
public static void DirtyActiveScene()
DirtyProduct(Product, Boolean)
Dirties the product.
Declaration
public static void DirtyProduct(Product product, bool value = true)
Parameters
| Type | Name | Description | 
|---|---|---|
| Product | product | The product.  | 
| Boolean | value | if set to   | 
DirtyProduct(GameObject, Boolean)
Dirties the product.
Declaration
public static void DirtyProduct(GameObject anyProductObject, bool value = true)
Parameters
| Type | Name | Description | 
|---|---|---|
| GameObject | anyProductObject | Any product object.  | 
| Boolean | value | if set to   | 
GameObjectVisibilityToRendererVisibility(VariantSet)
A Utility Method that replaces all GameObjectVisibilityAssignment's with VisibilityAssignment
Declaration
[Obsolete("Please use GameObjectVisibilityToRendererVisibility(Product, VariantSet) instead.")]
public static void GameObjectVisibilityToRendererVisibility(VariantSet variantSet)
Parameters
| Type | Name | Description | 
|---|---|---|
| VariantSet | variantSet | The variant set.  | 
GameObjectVisibilityToRendererVisibility(VariantSet, Product)
A Utility Method that replaces all GameObjectVisibilityAssignment's with VisibilityAssignment
Declaration
public static void GameObjectVisibilityToRendererVisibility(VariantSet variantSet, Product product)
Parameters
| Type | Name | Description | 
|---|---|---|
| VariantSet | variantSet | The variant set.  | 
| Product | product | 
GetPackageInfo()
Gets the package information.
Declaration
public static PackageInfo GetPackageInfo()
Returns
| Type | Description | 
|---|---|
| PackageInfo | PackageManager.PackageInfo.  | 
GetPackageVersion()
Gets the package version.
Declaration
public static string GetPackageVersion()
Returns
| Type | Description | 
|---|---|
| String | System.String.  | 
GetProductMetadataFromCatalogMetadata(Configurator, AssetProductReference)
Get product metadata in catalog from asset.
Declaration
public static ProductVariantProfileMetadata GetProductMetadataFromCatalogMetadata(this Configurator configurator, AssetProductReference assetProductReference)
Parameters
| Type | Name | Description | 
|---|---|---|
| Configurator | configurator | Configurator  | 
| AssetProductReference | assetProductReference | AssetProductReference  | 
Returns
| Type | Description | 
|---|---|
| ProductVariantProfileMetadata | ProductVariantProfileMetadata  | 
GetProductNames(Configurator)
Fetch product names from the info engine or from the addressable catalog metadata.
Declaration
public static List<string> GetProductNames(this Configurator configurator)
Parameters
| Type | Name | Description | 
|---|---|---|
| Configurator | configurator | Configurator  | 
Returns
| Type | Description | 
|---|---|
| List<String> | Product names  | 
MakePrefabSceneDirty()
Makes the prefab scene dirty.
Declaration
public static bool MakePrefabSceneDirty()
Returns
| Type | Description | 
|---|---|
| Boolean | 
  | 
ModifyAndSavePrefab(Action, MonoBehaviour)
Modifies the and save prefab.
Declaration
public static void ModifyAndSavePrefab(Action action, MonoBehaviour obj)
Parameters
| Type | Name | Description | 
|---|---|---|
| Action | action | The action.  | 
| MonoBehaviour | obj | The object.  | 
SavePrefab(GameObject)
Save the prefab
Declaration
public static void SavePrefab(GameObject gameObject)
Parameters
| Type | Name | Description | 
|---|---|---|
| GameObject | gameObject | Any prefab game object  | 
SaveProduct(GameObject, Boolean)
Saves the product.
Declaration
public static void SaveProduct(GameObject anyProductObject, bool force = false)
Parameters
| Type | Name | Description | 
|---|---|---|
| GameObject | anyProductObject | Any product object.  | 
| Boolean | force | if set to   | 
UpdateCacheQuery(Product)
Updates the cache query.
Declaration
public static void UpdateCacheQuery(Product product)
Parameters
| Type | Name | Description | 
|---|---|---|
| Product | product | The product.  | 
UpdateModelSetToLatestQueries(ModelSet, Transform)
Updates the model set to latest queries.
Declaration
public static void UpdateModelSetToLatestQueries(ModelSet modelSet, Transform parent)
Parameters
| Type | Name | Description | 
|---|---|---|
| ModelSet | modelSet | The model set.  | 
| Transform | parent | The parent.  |