|
%!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.. | ||
dist | %!s(int64=2) %!d(string=hai) anos | |
src | %!s(int64=2) %!d(string=hai) anos | |
README.md | %!s(int64=2) %!d(string=hai) anos | |
package-lock.json | %!s(int64=2) %!d(string=hai) anos | |
package.json | %!s(int64=2) %!d(string=hai) anos | |
tsconfig.json | %!s(int64=2) %!d(string=hai) anos | |
webpack.config.js | %!s(int64=2) %!d(string=hai) anos |
This example demonstrates interoperability between the 3D Tiles loader and react-three-fiber. The tileset is wrapped around the useLoader
interface. The <ErrorBoundary>
and <Suspense>
tags are used to provide feedback on the loading state of the tileset. The <group dispose>
attribute is used to automatically dispose of the tileset when the component is dropped.
npm install
npm run dev