Skip to content

Commit c97f6ad

Browse files
authored
Add parseAsync to GLTFExporter doc
1 parent 3ea9856 commit c97f6ad

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/examples/en/exporters/GLTFExporter.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,15 @@ <h3>[method:undefined parse]( [param:Object3D input], [param:Function onComplete
148148
Generates a .gltf (JSON) or .glb (binary) output from the input (Scenes or Objects)
149149
</p>
150150

151+
<h3>[method:Promise<ArrayBufferOrJSONObject> parseAsync]( [param:Object3D input], [param:Object options] )</h3>
152+
153+
<p>
154+
Generates a .gltf (JSON) or .glb (binary) output from the input (Scenes or Objects). This is just like the
155+
[page:parse parse]() method, but instead of accepting callbacks it returns a promise that resolves with the
156+
result, and otherwise accepts the same options. Use try-catch around the promise, or <code>promise.catch()</code>,
157+
to catch errors.
158+
</p>
159+
151160
<h2>Source</h2>
152161

153162
<p>

0 commit comments

Comments
 (0)