Archive 17/01/2023.

Get current scene in c++

Lichi

Hi, i’m trying to get nodes of a scene loaded with script, using c++.
I don’t know if there’s a function that return current scene or i need to create it.
PS: sry for my english
Thanks :slight_smile:

thebluefish

It depends on what you’re getting the scene from.

I would assume Component::GetScene() should do the trick assuming you’re using one.