I'm actually working on a Unity project and I'm using Github.
I decided to do again the menu of the game but when I switch computer to work again on the project I got some issues with it.
As you can see a big part of my Sprites and Fonts don't load. When i set back the menu by putting Sprite textures to Sprite (2D and UI) and adding the component it works well. But when I push the modification and pull to another computer, the same problem happen. The Sprites textures are back to default :
All the other sprites or prefab are working well so I don't understand.
Version : 2021.3.4f1
Make sure you are using VisibleMetaFiles in ProjectSettings -> Version Control -> Mode
Make sure that the metafile for the texture with issues is not corrupted and is under version control (it will be right near your texture with the same name and the .meta extension)
Check the history of this metafile to make sure that it is really pushed to the repo and then downloaded from there
Import settings for the texture are stored in this metafile, so you need to make sure that it shares correctly between two computers
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.
I had a Scene with a map (some buildings and roads) and Baked Navmesh, then I started Duplicating the Same Scene with modifying some objects inside (not the map or the world), so all the Scenes were sharing the same Navmesh somehow, then I deleted the Navmesh accidentally, Now the only way I seem to find is to create a new baked Navmesh for every Scene which will increase the build size too much!, How can I re-share the same baked Navmesh with all Scenes since all have the same map inside ? I am using Latest Unity3D.
Before You Start: if you have a lot of assets in your project changing serialization to Force Text may take a lot of time. So you may want to copy the target scenes to a new project, do the below mentioned steps and paste them back. :)
There is no way to do this from Unity editor, but there is a workaround:
Go to Edit > Project Settings > Editor and change the Asset Serialization to Force Text (default is Mixed) - this makes sure all assets, including your unity scene files are saved as text documents
Now open your scene file (the one with baked NavMesh) in any text editor
CMD+F or CTRL+F to focus on search bar and type "NavMeshSettings". In NavMeshSettings the last entree should be m_NavMeshData:{fileID:1234 //and some more stuff here} - this is reference to your baked NavMesh asset file. Copy the whole line
Now open the second scene that you want to share your NavMesh to (open in text editor again). Find exactly the same line starting with m_NavMeshData, delete it and past the line from the previous scene.
BOOM!
Edit/Tip: You may want to change serialization to Mixed again if you want to. The only downside of texted serialization is bigger files. It is mostly used for version controlling and merging and the scenes and stuff...
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.