Class ValidateQueryIdsMergeBehavior
Ensures that all query ids on the product's variant table are valid. Updates the product's settings prefab with the correct ids if needed.
Namespace: Unity.Industrial.Forma.Core.MeshMerge
Syntax
public class ValidateQueryIdsMergeBehavior : IMergeBehavior
Remarks
This behavior should be removed once the ids are fixed in a more suitable place. Fixing the variant table target query ids should be done in the product importer or the product class itself.
Methods
PostMerge(MergedModel)
Called after the meshes have been merged. Implement post-merge behavior here.
Declaration
public void PostMerge(MergedModel mergedModel)
Parameters
Type | Name | Description |
---|---|---|
MergedModel | mergedModel | The MergedModel instance that was merged. |
Implements
PreMerge(MergedModel, Transform)
Called before the originalRoot
meshes are merged. Implement pre-merge behavior here
Declaration
public void PreMerge(MergedModel mergedModel, Transform originalRoot)
Parameters
Type | Name | Description |
---|---|---|
MergedModel | mergedModel | The MergedModel instance will have its meshes merged. |
Transform | originalRoot | The root node of the hierarchy that will be merged. |