Class FindMaterialByNameQueryNode
Class FindMaterialByNameQueryNode.
Inheritance
FindMaterialByNameQueryNode
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Industrial.Configuring.Core
Syntax
[Serializable]
public class FindMaterialByNameQueryNode : MaterialQueryNode, IQuery<Material>, IQuery
Properties
defaultMaterial
Gets or sets the default material.
Declaration
public Material defaultMaterial { get; set; }
Property Value
Type | Description |
---|---|
Material | The default material. |
searchName
Gets or sets the name of the search.
Declaration
public string searchName { get; set; }
Property Value
Type | Description |
---|---|
String | The name of the search. |
Methods
FindMaterialsForName(QueryContext)
Finds the name of the materials for.
Declaration
public IEnumerable<Material> FindMaterialsForName(QueryContext context)
Parameters
Type | Name | Description |
---|---|---|
QueryContext | context | The context. |
Returns
Type | Description |
---|---|
IEnumerable<Material> | IEnumerable<Material>. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | model |
Query(QueryContext)
Find material of this name within the context
Declaration
public override Material Query(QueryContext context)
Parameters
Type | Name | Description |
---|---|---|
QueryContext | context | The context. |
Returns
Type | Description |
---|---|
Material | The first material which a matching name |
Overrides
UnityEngine.Industrial.Configuring.Core.QueryNode<UnityEngine.Material>.Query(UnityEngine.Industrial.Configuring.Core.QueryContext)
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)