Unity Prefabs missing after pulling project from GitHub - unity3d

I started to make a project on a Windows computer and uploaded it via GitHub. Later I wanted to download it on my Mac. But when I start the project on MacOS Unity the scene is empty and all prefabs are missing. Every time when I check GitHub it is deleting a lots of meta.files. When I discard the deletion, all meta.files are deleted again as soon as I start the project on my Mac.
Getting back to Windows GitHub says that everything is pushed. Referring to that article (https://medium.com/codex/solving-the-missing-prefab-issue-in-unity3d-ae5ba0a15ee9) the problem appears similar. But the solution does not help.
What is the problem to get my project from Windows to Mac via GitHub?

"Unity deletes .meta files":
After some research the answer to this seems to be - Unity removes .meta files when the corresponding object is missing.
"Prefabs are missing":
GitHub on my windows computer did not commit the .obj files. It took me a while to figure out that somehow a "gitignore_global.txt" was installed from somewhere (maybe GitHub Desktop?). .obj files were included to be ignored. That "gitignore_global.txt" is located in:[x:/User/Documents]
If you face the same problem - check the gitignore-file in your Unity project too. If certain file types are prohibited via one of these 2 files - no chance!
Cheers

Related

Unity Project not loading up

A couple of hours ago I turned off my computer and I just recently came back to work on my project
and this has been stuck on my screen for hours
I tried restarting my computer that didn't work and I tried to reopen the project like 10 times and it just stays stuck on ("Initialize Asset Database")
A Solution
Do a backup of your Projects (use Google Drive, Dropbox or Localstorage)
Deinstall the complete Unity Hub with the version
Install the Unity Hub including your favorite version
This also happens if the file name is wrong.
I made the mistake of putting the "\" character in the png file name. After renaming the file, the project loaded normally.

Unity - unity error cs2001 source file could not be found 2018

Ever since i updated my Unity, It keep telling me
error cs2001 source file "Scripts.cs" could not be found
I even tried creating a whole new project with new file and still getting this problem.
Anybody knows how to fix this problem!!!!!!
Sorry for my English.
Unity Version 2018.1.0f2
enter image description here
If the missing file is a script that you've renamed or deleted, simply recreate a script with the same name in the location mentioned. Then let Unity recompiles the scripts. Once successfully compiled feel free to delete the file if it no longer is necessary.
Check the folow:
1 Location of your update files in linux have 777 permissions for the user you have?. Or your file is in the location?.
2 path to the file correct writely?. You know in Windows or Linux use / or \ test it
3 your file have a name with extension correctly?
I hope this helps
Today I ran into that same problem as well after restoring a Windows system restore point. I assume that Windows restored some old Unity cache files in that process which led to that error.
Simply creating the missing file(s) works. But if you did a lot of changes / renames / removals recently you may have to re-create quite a lot of files to make it compile again.
If you're using version control like Git or SVN you can jump back to an earlier point in your change history (one where the probelmatic files still existed), let Unity compile and then go back to your current state.

After updating unity to latest version, the unity launcher is blank

Yesterday I updated my unity to latest version..
Then the launcher is blank.
And when i open any .unity file.. It opens the editor with a error.
Error loading file:///C%3A%2FUsers%2FBuckyDroidz%2FAppData%2FRoaming%2FUnity%2FPackages%2Fnode_modules%2Funity-editor-home%2Fdist/index.html#/login
Unity is still working and running the project.. But unity launcher is not working
After searching on google I found a fix. I mean I have to add some file in package folder.. But there was a link to download those files and the link is dead...
Help Me!!
Looking at your SO username, it looks like this is a problem with your computer username.The D in your name is probably "Ď" or some other character and Unity is having problem reading that file path(C:/Users/username/AppData/Roaming/Unity/Packages/node_modules/unity-editor-home/dist/index.html#/login). This causes license check to fail.
Two things to try:
Method 1.
Change your username
A.Change your name to valid English characters
B.Uninstall and install Unity again to recognize that change.
If this does not fix your problem, do method 2.
Method 2
Do manual Activation
A.Disconnect your internet/wifi.
B.Open Unity. Go to Help -> Manage License
C.Click on Manual Activation.
D.Click on Save License or Save License Request(Depends on Unity version)
E.Connect to your internet/wifi.
F.Go to https://license.unity3d.com/manual then upload that saved license there. Follow steps to on the website to create a license on that website. Make sure to chose free unity version as the license type. When everything is done, you will be able to download a key file. Download that file.
G.Disconnect your internet/wifi again.
H.Open Unity. Go to Help -> Manage License
I.Click on Manual Activation.
J.Click on Load License then choose the file you downloaded from step F.
You can now connect to your internet/wifi again. Restart Unity and test if the problem is still there.
This is a issue with 2017.2 as well
To fix
go to C:\Program Files\Unity\Editor\Data\Resources\Packages
You can see 4 tgz files
unity-editor-home.0.8.30.tgz
unityeditor-cloud-hub-0.0.15.tgz
unityeditor-collab-history.0.6.14.tgz
unityeditor-collab-toolbar.0.7.15.tgz
Use an unarchive program (I used 7-zip file manager) to open each one of these and extract contents (dist folder and package.json file) to your Roaming folder
C:\Users\YOURUSERNAME\AppData\Roaming\Unity\Packages\node_modules
After extract, the folder looks like this..
..\AppData\Roaming\Unity\Packages\node_modules\unity-editor-home
..\AppData\Roaming\Unity\Packages\node_modules\unityeditor-cloud-hub
..\AppData\Roaming\Unity\Packages\node_modules\unityeditor-collab-history
..\AppData\Roaming\Unity\Packages\node_modules\unityeditor-collab-toolbar
and unity-editor-home like below (one level subfolders shown)
..\AppData\Roaming\Unity\Packages\node_modules\unity-editor-home\dist
..\AppData\Roaming\Unity\Packages\node_modules\unity-editor-home\package.json
..\AppData\Roaming\Unity\Packages\node_modules\unity-editor-home\README.md

Gear VR Framework: Problems with cleaning (first step)

I'm currently trying to set up everything to develop a Gear VR app with Eclipse in Java but I keep getting errors when I clean the Gear VR Framework project:
http://pastebin.com/yK8810bG
"Das System kann die angegebene Datei nicht finden." simply means:
"The system cannot find the file specified."
At first Eclipse didn't recognize the directory "C:\Programme\Programmieren\AndroidNDK" (originally "Program Files" instead of "Programme" but it didn't work because of the space; has the subfolders "build", "platforms",...) as a valid folder for the NDK. According to another thread on Stackexchange, you have to create an empty file without a file extension and with the name "ndk-build" in the main folder (so "AndroidNDK"), which I did - even though there's already a file like that in the subfolder "build". That at least made Eclipse happy but now I get the above error messages.
Yes, the folders "GVRf" and "ovr_sdk_mobile" are in the same root folder and yes, I added "C:\Programme\Programmieren\AndroidNDK" to the Windows Path variable but I still get the same error messages.
I checked, the files really don't exist but I don't know, where I would even get them. I followed the steps here, including 1.b., so I should have everything necessary but apparently I don't. Plus, I double checked with this youtube video. I did everything the guy did - except the Git part for GVRf (I downloaded the zip) but including not copying the project into my workspace (that sadly gave me a bunch of other "cannot find..." errors) - and it worked just fine for him but not for me.
Since this doesn't work, I also can't even test the samples. :/
Any ideas where I can get the missing files or what actually could be the problem and how I can fix it?
I fixed it:
There must not be any spaces in the path, so you shouldn't put the framework + NDK in a subfolder of e.g. "Program Files". Eclipse and Java usually don't care but the framework and NDK apparently do.
Eclipse's workspace/your project has to be on the same HDD as the framework. I've tried a couple of things but haven't gotten it to work with my usual workspace since that's on a different HDD.
There seemed to be a problem with the old version of the framework (April 11th to 13th), simply couldn't get it to run. It's now running fine with a newer version (April 15th) - as long as the two above points are met.

GitHub Sencha Touch project clones blank

Recently I been learning Sencha Touch and cloning example projects such as this one from GitHub.
However, when I have followed the steps at the bottom of that page to completion my cloned project just shows a blank white screen.
I've tried this some months back and it worked. The link above is to the second project in as many weeks that I have tried cloning.
I have been cloning onto a Linux Ubuntu LAMP server. My locally developed Sencha Touch projects work so it's not that my server discriminates against Sencha.
When you have a look at the console, you'll see, that the Sencha Touch source file is missing.
You have to manually download Sencha Touch and copy sencha-touch-debug.js in the Tabs-and-Toolbars/touch folder.
You also have to copy all content of the Sencha Touch src folder (including files like AbstractComponent.js) in the Tabs-and-Toolbars/touch/src folder.
I think this is described in
https://github.com/senchalearn/Tabs-and-Toolbars/tree/master/touch too.
After adding the file and the content of the src, it was able to see the page.