Class ComponentRemapMergeBehavior
Remaps components onto a MergedModel's hierarchy.
Namespace: Unity.Industrial.Forma.Core.MeshMerge
Syntax
public class ComponentRemapMergeBehavior : IMergeBehavior
Constructors
ComponentRemapMergeBehavior()
Creates a ComponentRemapMergeBehavior instance.
Declaration
public ComponentRemapMergeBehavior()
Methods
AddCustomRemapBehavior<T>(RemapBehavior<T>)
Specify a custom remapping behavior that will be used instead of the default one for T
components.
Declaration
public void AddCustomRemapBehavior<T>(RemapBehavior<T> remapBehavior)
where T : Component
Parameters
Type | Name | Description |
---|---|---|
RemapBehavior<T> | remapBehavior | Custom remap behavior that will be used when remapping |
Type Parameters
Name | Description |
---|---|
T | Type of the component. |
IgnoreComponentType(Type)
Ignores type
components so that they don't get remapped to the MergedModel.
Declaration
public void IgnoreComponentType(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Component type to ignore. |
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. |