Hi all,
I have a problem with changing scenes through scene changer. The scene changes, but the player doesn't spawn.
The "easy way" of spawning the player when transitioning from the main menu doesn't work either, fortunately, the "other way" using autorun event works for the first scene after the main menu (but it doesn't work correctly for the other scenes.)
After checking the forums and google, it seems like the core of this problem lies in Invector TPC I'm using. Someone suggested to do the following:
"If anyone else has this problem turn off Invector’s Third Person Controller component on your player’s prefab – click on Open Properties and Locomotion and disable Use Instance."
but I don't have such an option available.
I managed to make my player spawn somehow, by using autorun event, unchecking scene changer's fade out/in options and commenting the hell out of invector's vGameController script (kinda barbaric, but it helped a little). Now my player is spawned, it can move and interact with stuff, but the screen is black. Even though the camera object is present in the scene.
I'm using:
Unity 2020.1.8f1
ORK 2.30.2
Invector Third Person Controller - Basic Locomotion 2.5.4
You'll most likely need a wrapper script to do some setup in Invector, e.g. setting ORK's spawned player as target of the camera (the provided wrapper example for OOTII can easily be adjusted).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I guess I'll have dive into wrappers later on anyways, but for now, I'm using this workaround:
It seems like the cause for the black screen after scene change were fade out/in options for the scene changer. it looks like the scene changer does not finish its job after the scene change (it "transports" the player but does not finish fade out/in process). And it also doesn't destroy itself after scene change (which it should I suppose, otherwise we would have a ton of them piled up after few scene changes).
Now, I'm able to change scenes successfully by using autorun events (with variables determining which spawn location to use) and by unchecking the scene changer's fade out/in options.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Defining scene names in ORK usually just requires the scene name, e.g. 'SampleScene', even if the scene is in a folder somewhere in your project.
Defining folder and scene name seems to work when loading the scene, but the scene changer no longer continues due to not matching any loaded scene's name, e.g. 'Scenes/SampleScene' will not match, since the loaded scene's name is 'SampleScene'.
I'll change/fix that behaviour in the next update, though :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!