Support multiple sheet instances (#153)

* Support multiple/nested sheets and sheet instances

* Add playground for instances

* Fix playground and example

* Change r3f's objectKey to storeKey to avoid confusion

* Update all editable/uniqueName variables used as store key to storeKey too

* Fix lint warnings
This commit is contained in:
Andrew Prifer 2022-05-16 12:43:45 +02:00 committed by GitHub
parent 10b4954ee2
commit fc9df7c346
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 195 additions and 88 deletions

View file

@ -92,7 +92,7 @@ function App() {
shadowMap
>
<SheetProvider
getSheet={() => getProject('Playground - R3F').sheet('R3F-Canvas')}
sheet={getProject('Playground - R3F').sheet('R3F-Canvas')}
>
{/* @ts-ignore */}
<e.perspectiveCamera makeDefault uniqueName="Camera" />