problem with getDefaultCamera(); from Node #1982
GamesStudioTwo
started this conversation in
General
Replies: 3 comments 2 replies
-
Can you please provide a minimal test project that reproduces the issue? Also, have you tried following it with a debugger to see specifically where and why it crashes? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Damm. Got another problem now if I call it in OnEnter(); |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi thanks for replay cant see anything in there |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all I got a problem with using
Director::getInstance()->getRunningScene()->getDefaultCamera();
I'm using it in a sub class for Camera but its just crashing I just want to remove and add a new one from a sub class for Camera
its fine is it in the main Scene() I just call getDefaultCamera() not a problem. but I'm calling it from a sub class.
but its not finding it. there's only 1 scene running is it a bug.? or is there a new way to call from the Director
I have even tired getting Parent as well.
I have even just tried
auto cam = Director::getInstance()->getRunningScene()->getCameras();
noting else and it just crash out I'm not even asking to do anything.
Beta Was this translation helpful? Give feedback.
All reactions