Esempio n. 1
0
        // This exports a game object into glTF. Brush strokes are exported in the style of the FBX
        // exporter by building individual meshes for the game object, merging them by brush type, and
        // exporting the merged meshes. The merged meshes are split at 64k vert boundaries as required by
        // Unity. Environment data can also be exported.
        public ExportResults ExportGameObject(GameObject gameObject, string outputFile,
                                              Environment env = null,
                                              bool binary     = false)
        {
            var payload = ExportUtils.GetSceneStateForGameObjectForExport(
                gameObject,
                AxisConvention.kGltfAccordingToPoly,
                env);

            return(ExportHelper(payload, outputFile, binary, doExtras: false));
        }