Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    IdentifiableObjectAnalysis Class

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

    A static class that visit an object and make sure that none of the IIdentifiable it references share the same identifier. In case there are duplicate identifier, the visitor can generate new identifiers for the duplicate

    System.Object → IdentifiableObjectAnalysis
    Derived from IdentifiableObjectAnalysis:

    public static class IdentifiableObjectAnalysis
    Name Description
    Methods
    Visit(Object, Boolean, ILogger)

    Visits the object and look up for duplicates identifier in IIdentifiable instances.

    | Improve this Doc View Source

    Methods


    Visit(Object, Boolean, ILogger)

    Visits the object and look up for duplicates identifier in IIdentifiable instances.

    public static bool Visit(object obj, bool fixDuplicate, ILogger logger = null)
    Parameters
    Type Name Description
    System.Object obj

    The object to visit.

    System.Boolean fixDuplicate

    If true, duplicate identifiers will be fixed by generating new identifiers.

    ILogger logger

    A logger to report duplicates and fixes.

    Returns
    Type Description
    System.Boolean

    True if the given object has been modified, false otherwise.


    • Improve this Doc
    • View Source
    In This Article

    Back to top

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