docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GameObjectExport

    Creates glTF files from GameObject hierarchies

    Inheritance
    object
    GameObjectExport
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: GLTFast.Export
    Assembly: solution.dll
    Syntax
    public class GameObjectExport

    Constructors

    Name Description
    GameObjectExport(ExportSettings, GameObjectExportSettings, IMaterialExport, IDeferAgent, ICodeLogger)

    Provides glTF export of GameObject based scenes and hierarchies.

    Methods

    Name Description
    AddScene(GameObject[], string)

    Adds a scene to the glTF. If the conversion to glTF was not flawless (i.e. parts of the scene were not converted 100% correctly) you still might be able to export a glTF. You may use the CollectingLogger to analyze what exactly went wrong.

    SaveToFileAndDispose(string, CancellationToken)

    Exports the collected scenes/content as glTF, writes it to a file and disposes this object. After the export this instance cannot be re-used!

    SaveToStreamAndDispose(Stream, CancellationToken)

    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!

    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)