Class Utilities
Class Utilities.
Namespace: UnityEngine.Industrial.Configuring.Core
Syntax
public static class Utilities
Fields
productSetupPanel
The product setup panel
Declaration
public static IProductSetupPanel productSetupPanel
Field Value
Type | Description |
---|---|
IProductSetupPanel |
productStagingPanel
The product staging panel
Declaration
public static IStagingPanel productStagingPanel
Field Value
Type | Description |
---|---|
IStagingPanel |
Methods
CreateGameObject(GameObject, String)
Allow creating a game object in scene or prefab edit mode. Mainly used to add new variant table object.
Declaration
public static GameObject CreateGameObject(GameObject parent, string name = "GameObject")
Parameters
Type | Name | Description |
---|---|---|
GameObject | parent | The parent. |
String | name | The name. |
Returns
Type | Description |
---|---|
GameObject | GameObject. |
FixRuntimeProductEditorMaterials(Product)
Workaround that fix pink materials when loading another platform addressable content in the Editor. (eg: loading an Android catalog in Windows Editor)
Declaration
public static void FixRuntimeProductEditorMaterials(Product product)
Parameters
Type | Name | Description |
---|---|---|
Product | product | Product to fix |
GetValidationReport(ProductRuntimeUIData)
Iterate through the Product's Feature Table and Validate that the data in ProductRuntimeUIData is Valid
Declaration
public static void GetValidationReport(ProductRuntimeUIData data)
Parameters
Type | Name | Description |
---|---|---|
ProductRuntimeUIData | data | The data. |
NormalizePath(String)
Will normalize the directory separator Chars based on the current platform (eg: '' or '/').
Declaration
public static string NormalizePath(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | PAth to normalize |
Returns
Type | Description |
---|---|
String | Normalized path |