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:
parent
10b4954ee2
commit
fc9df7c346
11 changed files with 195 additions and 88 deletions
|
@ -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" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue