Class VredVisibilitySwitchListRendererQueryNode
Class VredVisibilitySwitchListRendererQueryNode.
Inheritance
VredVisibilitySwitchListRendererQueryNode
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 VredVisibilitySwitchListRendererQueryNode : ListRendererQueryNode, IQuery<List<Renderer>>, IQuery
Fields
_context
The context
Declaration
[SerializeField]
public GameObject _context
Field Value
| Type | Description |
|---|---|
| GameObject |
Properties
transformVariant
Gets or sets the transform variant.
Declaration
public GameObject transformVariant { get; set; }
Property Value
| Type | Description |
|---|---|
| GameObject | The transform variant. |
transformVariantKey
Gets or sets the transform variant key.
Declaration
public string transformVariantKey { get; set; }
Property Value
| Type | Description |
|---|---|
| String | The transform variant key. |
Methods
Query(QueryContext)
Find all renderer of this name within the context
Declaration
public override List<Renderer> Query(QueryContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| QueryContext | context | The context. |
Returns
| Type | Description |
|---|---|
| List<Renderer> | All renderer of the executed query |
Overrides
UnityEngine.Industrial.Configuring.Core.QueryNode<System.Collections.Generic.List<UnityEngine.Renderer>>.Query(UnityEngine.Industrial.Configuring.Core.QueryContext)
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | _context |
| InvalidOperationException | No transform variant set. |
| InvalidOperationException | |
| InvalidOperationException | The key of the transform variant is not equal to the key set in the TransformVariant component: try to reimport variant table. |
SetQuery(List<Renderer>, QueryContext)
Sets the query.
Declaration
public override void SetQuery(List<Renderer> renderers, QueryContext context = null)
Parameters
| Type | Name | Description |
|---|---|---|
| List<Renderer> | renderers | The renderers. |
| QueryContext | context | The context. |
Overrides
UnityEngine.Industrial.Configuring.Core.QueryNode<System.Collections.Generic.List<UnityEngine.Renderer>>.SetQuery(System.Collections.Generic.List<UnityEngine.Renderer>, UnityEngine.Industrial.Configuring.Core.QueryContext)