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(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 |
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 |
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. |
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. |
UpdateFormaToLatest()
Updates the forma to latest.
Declaration
public static void UpdateFormaToLatest()
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. |