docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SaveToStreamAndDispose

    SaveToStreamAndDispose(Stream)

    Exports the collected scenes/content as glTF, writes it to a Stream and disposes this object. Only works for self-contained glTF-Binary. After the export this instance cannot be re-used!

    Declaration
    public Task<bool> SaveToStreamAndDispose(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    glTF destination stream

    Returns
    Type Description
    Task<bool>

    True if the glTF file was created successfully, false otherwise

    Implements
    IGltfWritable.SaveToStreamAndDispose(Stream)
    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)