autodesk-forgeautodesk-viewer

Using new useOPFS=true in Forge


Viewer version 7.96.0 states that

New and improved geometry cache that can be enabled using the URL parameter useOPFS=true

can this option be passed also as part of the initilisation options for the viewer or only as URL parameter?


Solution

  • You can specify it as a global variable (USE_OPFS=true) before initializing the viewer to get the same effect as the query parameter.