Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    BuildDependencyManager Class

    Namespace: Stride.Core.Assets.Analysis
    Assembly: Stride.Core.Assets.dll

    Build dependency manager Basically is a container of BuildAssetNode

    System.Object → BuildDependencyManager
    Derived from BuildDependencyManager:

    public class BuildDependencyManager
    Name Description
    Fields
    AssetCompilerRegistry

    The AssetCompilerRegistry, here mostly for ease of access

    Methods
    FindNode(AssetItem, Type)

    Finds a node, notice that this will not perform an analysis on the node, which must be explicitly called on the node

    FindNodes(AssetItem)

    Finds all the nodes associated with the asset

    FindOrCreateNode(AssetItem, Type)

    Finds or creates a node, notice that this will not perform an analysis on the node, which must be explicitly called on the node

    RemoveNode(BuildAssetNode)

    Removes the node from the build graph

    RemoveNode(AssetItem)

    Removes the nodes associated with item from the build graph

    | Improve this Doc View Source

    Fields


    AssetCompilerRegistry

    The AssetCompilerRegistry, here mostly for ease of access

    public static readonly AssetCompilerRegistry AssetCompilerRegistry
    Field Value
    Type Description
    AssetCompilerRegistry
    | Improve this Doc View Source

    Methods


    FindNode(AssetItem, Type)

    Finds a node, notice that this will not perform an analysis on the node, which must be explicitly called on the node

    public BuildAssetNode FindNode(AssetItem item, Type compilationContext)
    Parameters
    Type Name Description
    AssetItem item

    The asset item to find

    System.Type compilationContext

    The context in which the asset is compiled.

    Returns
    Type Description
    BuildAssetNode

    The build node associated with item or null if it was not found


    FindNodes(AssetItem)

    Finds all the nodes associated with the asset

    public IEnumerable<BuildAssetNode> FindNodes(AssetItem item)
    Parameters
    Type Name Description
    AssetItem item

    The asset item to find

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<BuildAssetNode>

    The build nodes associated with item or null if it was not found


    FindOrCreateNode(AssetItem, Type)

    Finds or creates a node, notice that this will not perform an analysis on the node, which must be explicitly called on the node

    public BuildAssetNode FindOrCreateNode(AssetItem item, Type compilationContext)
    Parameters
    Type Name Description
    AssetItem item

    The asset item to find or create

    System.Type compilationContext

    The context in which the asset is compiled.

    Returns
    Type Description
    BuildAssetNode

    The build node associated with item


    RemoveNode(BuildAssetNode)

    Removes the node from the build graph

    public void RemoveNode(BuildAssetNode node)
    Parameters
    Type Name Description
    BuildAssetNode node

    The node to remove


    RemoveNode(AssetItem)

    Removes the nodes associated with item from the build graph

    public void RemoveNode(AssetItem item)
    Parameters
    Type Name Description
    AssetItem item

    The item to use to find nodes to remove


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation