Transient Parser Error: Could not find type "PhantomCameraHost" in the current scope.
when switching scenes
#152
Unanswered
nanodeath
asked this question in
Question / Help Wanted
Replies: 1 comment 5 replies
-
As far as I understand it, all custom node types should be initialized, or at least recognized, before the scene even loads without you having to do anything extra. So it's quite peculiar that it says it cannot find type PhantomCameraHost. Based on your edit addition, it might be that the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When loading directly from the Godot editor into my main scene (which contains the PhantomCamera), everything works fine.
But when going through the main menu scene -> loading screen scene -> main scene route, around 25% of the time I get
which seems to crash the game.
My loading screen is calling
ResourceLoader.LoadThreadedRequest(levelToLoad, cacheMode: ResourceLoader.CacheMode.Replace);
andGetTree().ChangeSceneToFile(levelToLoad);
to load the main scene.Is there something I'm doing wrong?
edit: also it references this line:
phantom-camera/addons/phantom_camera/scripts/viewfinder/viewfinder.gd
Line 428 in d2e03d9
Godot 4.2.1 mono/PhantomCamera 0.5.0.5
Beta Was this translation helpful? Give feedback.
All reactions