I have a simple Unity scene (Scene-1) and a scene with ARKit.
I can switch between the scenes using SceneManager.LoadScene("sceneName")
When I switch from Scene-1 to ARKit scene everything is fine.
But if after that I switch back to Scene-1 and once again to ARKit scene - the ARKit scene doesn't work, looks like it stuck. I see a frozen image from the camera, though all buttons work.
Why is it happening, and is there any way to load a scene with ARKit more than ones?
Related
I'm trying to make an FPS game using unity, but I've come across a problem. When I load my main scene after pressing "RESTART", it somehow causes my game to change appearance. But when I start the game from the main scene, it looks perfectly fine.. I've tried disabling Post Processing but I believe that's not what's causing the issue, I've provided some pictures of what happens when I load the main scene through the GameOver scene and when I load it through the MainScene.
Scene loaded through the press of a button ------Main Scene (what it's supposed to look like)
Your help is much apreciated
Ok, so after quite a while of messing around with the settings I FINALLY figured it out. To get rid of uneven lighting between the scenes all you have to do is go to Window>Rendering>Lighting>Environment> (make sure "Auto Generate" is UNCHECKED) and click Generate lighting!!!
I know there is a scene transition effect between scene for normal scene load from SceneManager, but how about assets bundle scene load ?
This is example of scene transition for normal scene load.
https://github.com/prime31/TransitionKit
But I can't find anything that related to assets bundle scene transition. I try to modified the code but it does not work since I don't really understand assets bundles structure.
When using the unity editor all animations tied to the camera work, but when build and deployed onto the hololens the animation wont process(being overridden by real life coordinates), the way to get around this is by attaching it to a random gameObject. My issue is giving the user the ability to roam around space whilst tying animations and force movements to the cameras parent(empty gameObject).
I have tried making the gameobject stay where the camera is but obviously this just makes for constant motion.
Is there any way to keep the cameras parent exactly where the camera is in order to stop the animations going glitchy?
Whenever I create a new project in Unity 5 I see this
and I'm not familiar with this scene. The problem is I don't know how to change this scene to this one.
Any solution ?
This means that Unity is in 2D Mode. Click the 2D Button that is next to the Game tab in Unity. That will switch you back to 3D Mode. It is circled in red in the picture below.
And whenever you are creating a new project, make sure to select 3D not 2D and stuff like this won't happen. If it does, click on the 2D button circle in the first image, save scene and exit. That should now be fixed.
If i run a scene normally in unity 3D it looks nice, but if i switch to it from another scene the camera became blocked and crashed without giving me any error!! Am i missing something? I am working with unity pro 4.5.0 and Nyartoolkit .
Here are 2 screenshot of my two scenes:
the first screenshot is my second scene and the second one is the hierarchy of my first scene !!??
It's the same problem when switching from the first scene to the second scene or going back from the second scene to my first one. In all cases the camera became black as it is clear in first screenshot .