docs.unity.cn
    Show / Hide Table of Contents

    Class ComponentRemapMergeBehavior

    Remaps components onto a MergedModel's hierarchy.

    Inheritance
    Object
    ComponentRemapMergeBehavior
    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 T components.

    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
    IMergeBehavior.PostMerge(MergedModel)

    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.

    Implements
    IMergeBehavior.PreMerge(MergedModel, Transform)
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on September 6, 2022
    Terms of use