Me and some of my mates work together on a project in Unity. When I try to load the project, one of them gave to me (via Dropbox or USB-Stick, doesn't matter), I keep seeing the empty Hierarchy-window (I don't even see a main camera), although he created some objects in the scene.
The scene is definetly loaded in the editor, the name of the scene is shown at the top of the editor. I am not even able to instantiate a prefab in that scene, prefabs from the project are shown with a grey file-symbol, not with the normal blue "prefab-symbol".
By the way: We are using Unity 5.0.x
I hope you have a solution for my problem :)
The problem was a wrong setting of the meta-files and a version-conflict of Unity. The project was created with Unity 5.0.0, opening it with Unity 5.0.1 did not work.
Related
I'm taking an online Unity3D class and after some straight C# stuff we're finally diving into Unity proper. When the teacher makes a project it starts with nothing but a Main Camera object. However, when I try to make a new project it comes with a directional light in the hierarchy window and some un-deleteable folders in the project window. Is there a way I can simply start the project as empty?
Your unity version is different (and that's ok)
Those undeletable folders are there because they are required by Unity in order to function correctly. And they actually exist in your teacher's Unity project too! You just don't see them because the root directory on your version of Unity is in a different place (previously the /Packages directory was hidden because the project window's root director was /Assets, if you were to open both projects in the file explorer window you would find them essentially the same).
The main camera and directional light are just helpful defaults, if you don't need them you can delete them (but most projects do need them).
I am able to open my unity project and base scene on any computer other than my laptop. When I open the main scene on my laptop I am greeted with all of the terrain being a white checkerboard. All of the gameObjects show on the side bar but are invisible in the scene and game views. Any help or ideas would be greatly appreciated as I have looked for the answer everywhere.
Your image which you uploaded points that you are viewing your game in Scene mode rather than game mode. In your scene mode the rendering has been switched to Baked Lightmap or one of the other modes in Baked Global Illumination. By default Unity Scene modes are kept in Shaded in Shading mode. ie the one where we see our scene same as Game scene. To get back to shaded mode Find the Dropdown button below Scene Tab and select shaded mode.
I finally found the workaround for this same problem on mine: Hopefully your is similar.
After I upgraded my Unity version to the latest and it updated the project, it created a _TerrainAutoUpgrade folder in "Assets". I followed my normal source control rules, which was to check in most of this folder but to ignore the .meta files (allowing the computer that cloned my repository to generate its own).
Turns out, that didn't work. The meta files generated on the second computer, the "mainObjectFileID" in the meta file was set to 0.
I fixed it by manually copying over the _TerrainAutoUpgrade folder from the working machine to the non-working one. Clearly this is a bug in Unity, but at least this got me around it.
I came across a similar problem where my terrain was looking like a checkerboard. I found out that I was missing the terrain layers when I went to the paint tab. I was able to solve it by replacing the layers with terrain layers I already had and replacing the textures.
So I had a project that I created using unity 2017.3 now I decided to move to Unity 2018.2.18f1 and notice a very annoying problem that I can't seem to solve,
the lighting in the scene window got way too bright on the other hand in the game window even before hitting play it shows the correct light. here is an image of the issue:
I tried everything out there that worked on past versions with no results, trying removing auto generate and generating the lightmap manually, tried to change the reflection source from skybox to custom didn't work.
although in the game it self the light is correct so it didn't really break the project but it is really annoying designing levels this way
any insight on this would be great.
Sometimes, issues occur when upgrading a project to another Unity version. If the issue is related to lighting do the following in order:
1. Delete the lights in the current scene then create new lights. For some reason, there seems to be light issues carrying it's settings to the new Unity version and creating new lights usually fixes it.
2. Go to Windows --> Lighting --> Settings then go to the Scene tab. Scroll down and disable Auto Generate checkbox then click the Generate Lightning button.
3.Go to Assets --> Reimport All.
4. If everything above did not work, go your Project's Library folder then delete it. Restart Unity.
When I build Unity project I saw that if I add current scene Unity or not the game still run fine.
So what is the purpose of add scene ?
If you have not added any scenes then unity will build with your current opened scene by default. The purpose of adding scene is to handle among multiple scenes like Main Menu, Store, Gameplay, Gameover etc. To get more than one scene, you have to add all the relevant scenes, otherwise unity will not recognise the scene when you want to switch to another scene.
As long as #Hamza Hasan answer is correct, I think that question author means something diffrent.
He asks why he should add scene if it works fine in Editor without this action.
So the answer is, if this scene is not first default one (and it is your case), you wont be able to load it programaticaly, as it wasnt included into build even if it works in Editor. It works in Editor couse it was loaded into memory opening the scene.
Upon upgrading to DK2 by removing the old OVR stuff and importing the new ones, the 2 OVR prefabs still complain that:
The associated script cannot be loaded.
As seen in the attached images, the scripts are attached to the prefabs and ticked.
How do I re-attach something that seems to be attached already?
Or is there a different meaning to this error message?
These 2 prefabs are the newly-imported DK2 prefabs. I did remove everything to do with DK1 and anything with 'Oculus' and 'OVR' in its name, but these 2 are the ones that already come with DK2's SDK (i.e. the new scripts are there) so I wonder why this happens, and how I can resolve it?
Thanks
Firstly, is there any log which contains the information about problem?
if yes please add log information.
Secondly, Oculus DK2 sdk change it's content so often. When it's changed i delete it's all prefabs from scene and contents from Unity. Then add new SDK and prefabs to my scene. Last Oculus SDK has 3 Camera. Left-Center-Right. So i think you need to add last sdk prefabs your scene again. If problem does not solves,
Create new project and add last SDK, if there is no prefab which contains 3 camera maybe your package has problem. Maybe firstly you check it with another fresh project before delete all contents from your main project.