Class VredMaterialSwitchMaterialQueryNode
Class VredMaterialSwitchMaterialQueryNode.
Inheritance
VredMaterialSwitchMaterialQueryNode
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Industrial.Configuring.Importers.PiXYZVredProductImporter.Runtime
Syntax
[Serializable]
public class VredMaterialSwitchMaterialQueryNode : MaterialQueryNode, IQuery<Material>, IQuery
Properties
materialIndex
Gets or sets the index of the material.
Declaration
public int materialIndex { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The index of the material. |
materialSwitchName
Gets or sets the name of the material switch.
Declaration
public string materialSwitchName { get; set; }
Property Value
Type | Description |
---|---|
String | The name of the material switch. |
variantsManager
Gets or sets the variants manager.
Declaration
public GameObject variantsManager { get; set; }
Property Value
Type | Description |
---|---|
GameObject | The variants manager. |
Methods
Query(QueryContext)
Find the material assigned to given index and variant manager.
Declaration
public override Material Query(QueryContext context)
Parameters
Type | Name | Description |
---|---|---|
QueryContext | context | The context. |
Returns
Type | Description |
---|---|
Material | Material. |
Overrides
UnityEngine.Industrial.Configuring.Core.QueryNode<UnityEngine.Material>.Query(UnityEngine.Industrial.Configuring.Core.QueryContext)
Exceptions
Type | Condition |
---|---|
InvalidOperationException | No context set: call Initialize before calling Query |
InvalidOperationException | No variants manager set. |
InvalidOperationException | Index of material must not be negative |
InvalidOperationException |
SetQuery(Material, QueryContext)
Sets the query.
Declaration
public override void SetQuery(Material material, QueryContext context = null)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The material. |
QueryContext | context | The context. |
Overrides
UnityEngine.Industrial.Configuring.Core.QueryNode<UnityEngine.Material>.SetQuery(UnityEngine.Material, UnityEngine.Industrial.Configuring.Core.QueryContext)