docs.unity3d.com
    Show / Hide Table of Contents

    Class FindMaterialByNameQueryNode

    Class FindMaterialByNameQueryNode.

    Inheritance
    Object
    QueryNode
    QueryNode<Material>
    MaterialQueryNode
    FindMaterialByNameQueryNode
    Inherited Members
    MaterialQueryNode.materialPathId
    MaterialQueryNode.ApplyOverride(QueryNode)
    MaterialQueryNode.IsQueryValid(QueryContext)
    MaterialQueryNode.ResetOverride(QueryContext)
    MaterialQueryNode.SetMaterialPathId(Material, QueryContext)
    MaterialQueryNode.IsMaterialPathValid(QueryContext)
    QueryNode<Material>.ResultObject
    QueryNode<Material>.m_Result
    QueryNode<Material>.Result
    QueryNode<Material>.HasAnOverride()
    QueryNode<Material>.ExecuteQuery(QueryContext)
    QueryNode<Material>.ResolveQuery(QueryContext)
    QueryNode.overrideQuery
    QueryNode.id
    QueryNode.EnsureId()
    Namespace: Unity.Industrial.Forma.Core.Variants
    Syntax
    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>.

    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
    Unity.Industrial.Forma.Core.Variants.QueryNode<Material>.Query(Unity.Industrial.Forma.Core.Variants.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
    Unity.Industrial.Forma.Core.Variants.QueryNode<Material>.SetQuery(Material, Unity.Industrial.Forma.Core.Variants.QueryContext)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023