Table of Contents

Class IdentifiableObjectAnalysis

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

public static class IdentifiableObjectAnalysis
Inheritance
IdentifiableObjectAnalysis

Methods

Visit(object, bool, 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

obj object

The object to visit.

fixDuplicate bool

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

logger ILogger

A logger to report duplicates and fixes.

Returns

bool

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