[camera] error about ActiveCamera

This is error log.
Uncaught Error: Active camera not set
at t.a.a.createPickingRayToRef (babylon.js:16)
at t.a.a.createPickingRay (babylon.js:16)
at t.a.a.pick (babylon.js:16)
at e._initActionManager (babylon.js:16)
at e._initClickEvent (babylon.js:16)
at _onPointerUp (babylon.js:16)

And this is my canvas log.

<canvas 
id="myCanvas"
width="500" height="1015" 
touch-action="none" 
tabindex="1"
style="margin: 0px; 
background: darkgrey; 
width: 100vw; height: 96.5vh; 
touch-action: none;">
</canvas>

I wont don’t use ‘.attachControl( )’.
And i used ArcRotateCamera.

It is @rah’s Ref :
[https://www.babylonjs-playground.com/#8CC5W7#4 ]


I’m saw same error on this ref.

Why & How about this error. plz.
Thank you :pray:

Just remove the dummy scene: https://www.babylonjs-playground.com/#8CC5W7#6

One project = have a one scene?
I should set multi scene. (ex : mainScene+MainGUIScene, gameScene+gameGUIScene)
This was wrong?

How set scenes in project? :pray:


Ah, dummy! Okey, i got it.
Case my code had too none active Scene…
And so clear this problem. Thank you!

1 Like