Interface IMergeBehavior
Adds custom merging behavior when creating a MergedModel
Namespace: Unity.Industrial.Forma.Core.MeshMerge
Syntax
public interface IMergeBehavior
Methods
PostMerge(MergedModel)
Called after the meshes have been merged. Implement post-merge behavior here.
Declaration
void PostMerge(MergedModel mergedModel)
Parameters
Type | Name | Description |
---|---|---|
MergedModel | mergedModel | The MergedModel instance that was merged. |
PreMerge(MergedModel, Transform)
Called before the originalRoot
meshes are merged. Implement pre-merge behavior here
Declaration
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. |