docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ModelWriter

    Provides methods for saving models.

    Inheritance
    object
    ModelWriter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Sentis
    Assembly: Unity.Sentis.dll
    Syntax
    public static class ModelWriter

    Methods

    Save(Stream, Model)

    Serializes and saves the model description and weights to a stream.

    Declaration
    public static void Save(Stream stream, Model model)
    Parameters
    Type Name Description
    Stream stream

    The stream to save the model to.

    Model model

    The model to save.

    Save(Stream, ModelAsset)

    Serializes and saves the model asset bytes to a stream.

    Declaration
    public static void Save(Stream stream, ModelAsset modelAsset)
    Parameters
    Type Name Description
    Stream stream

    The stream to save the model to.

    ModelAsset modelAsset

    The model asset to save.

    Save(string, Model)

    Serializes and saves the model description and weights to a file.

    Declaration
    public static void Save(string fileName, Model model)
    Parameters
    Type Name Description
    string fileName

    The path to save the model file to.

    Model model

    The model to save to file.

    Save(string, ModelAsset)

    Serializes and saves the model description and weights to a file.

    Declaration
    public static void Save(string fileName, ModelAsset modelAsset)
    Parameters
    Type Name Description
    string fileName

    The path to save the model file to

    ModelAsset modelAsset

    The model asset to save to file

    In This Article
    Back to top
    Copyright © 2024 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)