Interface IMeshFormat | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IMeshFormat

    Interface for mesh I/O.

    Inherited Members
    IFileFormat.IsSupported(String)
    Namespace: UnityEngine.Experimental.U2D.TriangleNet.IO
    Syntax
    public interface IMeshFormat : IFileFormat

    Methods

    Import(String)

    Read a file containing a mesh.

    Declaration
    IMesh Import(string filename)
    Parameters
    Type Name Description
    System.String filename

    The path of the file to read.

    Returns
    Type Description
    IMesh

    An instance of the IMesh interface.

    Write(IMesh, Stream)

    Save a mesh to a System.IO.Stream.

    Declaration
    void Write(IMesh mesh, Stream stream)
    Parameters
    Type Name Description
    IMesh mesh

    An instance of the IMesh interface.

    System.IO.Stream stream

    The stream to save to.

    Write(IMesh, String)

    Save a mesh to disk.

    Declaration
    void Write(IMesh mesh, string filename)
    Parameters
    Type Name Description
    IMesh mesh

    An instance of the IMesh interface.

    System.String filename

    The path of the file to save.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023