docs.unity.cn
    Show / Hide Table of Contents

    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.

    Inheritance
    Object
    ValidateQueryIdsMergeBehavior
    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
    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