Class FileProcessor | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class FileProcessor

    Inheritance
    System.Object
    FileProcessor
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEngine.Experimental.U2D.TriangleNet.IO
    Syntax
    public static class FileProcessor

    Methods

    Add(IFileFormat)

    Declaration
    public static void Add(IFileFormat format)
    Parameters
    Type Name Description
    IFileFormat format

    Import(String)

    Read a file containing a mesh.

    Declaration
    public static 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.

    IsSupported(String)

    Declaration
    public static bool IsSupported(string file)
    Parameters
    Type Name Description
    System.String file
    Returns
    Type Description
    System.Boolean

    Read(String)

    Read a file containing polygon geometry.

    Declaration
    public static IPolygon Read(string filename)
    Parameters
    Type Name Description
    System.String filename

    The path of the file to read.

    Returns
    Type Description
    IPolygon

    An instance of the IPolygon class.

    Write(IPolygon, String)

    Save a polygon geometry to disk.

    Declaration
    public static void Write(IPolygon polygon, string filename)
    Parameters
    Type Name Description
    IPolygon polygon
    System.String filename

    The path of the file to save.

    Write(IMesh, String)

    Save a mesh to disk.

    Declaration
    public static 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