docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IONNXMetadataImportCallbackReceiver

    Implement this interface to receive model metadata during ONNX import.

    Namespace: Unity.Sentis
    Assembly: Unity.Sentis.ONNX.dll
    Syntax
    public interface IONNXMetadataImportCallbackReceiver

    Methods

    OnMetadataImported(AssetImportContext, ONNXModelMetadata)

    This method is called when metadata is loaded during ONNX import, before the model is serialized.

    Declaration
    void OnMetadataImported(AssetImportContext ctx, ONNXModelMetadata metadata)
    Parameters
    Type Name Description
    AssetImportContext ctx

    The context of the current import process.

    ONNXModelMetadata metadata

    The metadata fields of the imported ONNX file.

    Remarks

    This method is only called at import time. It is the responsibility of the implementer to store the metadata in a way that it can be accessed later. The AssetImportContext is provided to so that additional assets can be created and added to the import context, if necessary. Note that the model itself is not available in the AssetImportContext at this point.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)