You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using `'routed'` will use the default `NgtRoutedScene` component provided by Angular Three. It is also possible to have your own routed scene component.
116
+
117
+
```html
118
+
<ngt-canvas[sceneGraph]="CustomRoutedScene" />
119
+
```
120
+
121
+
```angular-ts
122
+
@Component({
123
+
template: `
124
+
<ngt-router-outlet />
125
+
<!-- All routed scenes will have a CameraControls instead of each routed rendering their own camera controls -->
126
+
<ngts-camara-controls />
127
+
`,
128
+
imports: [
129
+
NgtRouterOutlet, // a custom router-outlet
130
+
NgtsCameraControls,
131
+
],
132
+
})
133
+
export class CustomRoutedScene {
134
+
static [ROUTED_SCENE] = true; // flag for `NgtRenderer`
0 commit comments