Inspector not Showing Scripts in Multiple Versions of Unity - unity3d

I have recently started learning VR on udacity, and when I use unity, no scripts show up in the inspector. When I use 5.6.1p2, I get this message.
Here is the console tab
I recently installed a beta version of unity, as referred to by a mentor, and there is no longer an error message, but the scripts simply do not appear

Problem resolved:
After putting course assets into a new folder, and extracting them, all dependencies were accessible within unity. Library was rebuilt with all required dependencies, and project is completed and working.
To open the project, I opened unity first, and used the open project button to select the folder including the assets, library, and temp folders. When I opened through the assets folder, the library wasn't complete, therefor not all components and dependencies were accessible.

Sometimes Unity not show folders with corrupted meta file. just delete meta file with this folder name

Related

Unity gradle templates folder missing (2021.3.6f)

I installed unity 2021.3.6f with android build support (NDK and SKD) using unity hub.
Going into a project and attempting to build it on android platform , I get this error :
FileNotFoundException: Failed to find $C:/ProgramFiles/Unity/Hub/Editor/2021.3.6f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\GradleTemplates\mainTemplate.gradle
I looked up in the directory and I don't even have the /Tools folder inside /AndroidPlayer.
Tried to reinstall unity and android module again but even after 2 times of reinstallation I still receive this weird error.
In unity Edit>Preferences>External-Tools>Gradle Installed With Unity is Ticked and marked to the /Tools folder which doesn't even exists
(there is also a warning below that saying I'm missing the recommended Gradle and I should install the recommended version using unity hub. but I already tried reinstalling everything)
I have used the unity android build before and it was always fine, perhaps this happens with the 2021.3.6f version that was released this week.
Can't find any solution to this anywhere, hope you can help.
Found the solution.
looks like the gradle folder has changed from AndroidPlayer\SDK\Tools to AndroidPlayer\SDK\cmdline-tools but the path still the old one inside Unity preferences.
Copy all folders and files inside cmdline-tools, create a new folder called Tools inside AndroidPlayer folder and paste there.
You can consider it as Unity Bug which will be fix in next update.
But for now please do the below workaround to fix this issue.
Go to the below location in the Unity installed folder
/Applications/Unity/Hub/Editor/2021.3.6f1/PlaybackEngines/AndroidPlayer/SDK/cmdline-tools/2.1
Now copy all the files and folders in this folder
Now Go back to the AndroidPlayer folder and create a folder Tools
Now paste copied files/folders in it and click on build and run.
Hope it will fix this issue.

How to prevent resetting of the files present in Packages section in Unity

I am working with Vuforia in Unity 2019.2.5f1 and building the project for Android. I have some Vuforia related files in the Packages section which I have edited to make some part of the project work. Everything works fine and the changes made in that file are visible when I run the project in my device directly by using the Build and Run option.
However, I also want to do some additional stuff in the project using Android Studio. For that, I export the project by checking the Export Project option in Build settings. The exporting is done fine, but the Package file in which I made some changes, is reset to its original data. The exported project (which is an Android Studio project) does not reflect the changes as well. Other files present in Assets section work fine and changes are visible, but not the files present in the Packages section.
Basically, I have a file in the Packages section which I need to change, but the changes are not reflected in the exported project. But, are visible when I run the project directly from Unity in my device. I want those files not to reset. I need some guidance on how to achieve this.
I am not very experienced in Unity. Any help in this regard is appreciated.
Thanks
In short: Do not edit anything in the Packages .. they get recompiled/imported automatically and in simple words: You can't prevent it.
What you can do however is copy the entire according folder from the Library over into the Assets and thereby make them local files you can then edit. See Embedded Dependencies
As mentioned in this thread by Unity Technologies (22.05.2019)
Yes, currently the way to develop a package is to copy/move it to your project's Packages folder.
Also see Copying a Unity package from the cache for further information.
In general no changes should be necessary to a Package directly. Maybe you should rather implement your own script and only copy the original content and then rather make your changes their?

LibGDX Assets are not updating

I have changed some image files in my assets folder and they are appearing correctly in the Package Explorer of Eclipse but when I run my game the new versions do not appear and the old versions are still being used. When I add a new file and try to use it in code I get a "Couldn't load file" error, even though it is appearing in the file hierarchy. It seems like my assets are stuck as what they were 6 hours ago all of a sudden. What could cause this?
EDIT: The only thing I can think of is that I added new dependencies to the build.gradle file, and I think that was around the time new resources stopped loading. Could that be connected?
Have you tried doing Project->Clean, followed by a Project->Build All?
Eclipse will most likely not recompile your project automatically, if you do not change the source and just swap out some resources. Thus, your old resource files still reside in the build folder (and in the path at run time).
Your new files only seem to be present in the source folder and are not used at run time.
You can try deleting the bin folder in the project and then rebuilding. This will definitely change it.
The above is not, a permanent fix.

Unity adding packages to version control

According to the Unity tutorial, the only folders that should be in version control are Assets and ProjectSettings. The rest of the assets and files that make a project are supposed to be generated by Unity. As a test I tried to open a project directory that only contained these folders. It loaded the project, it just would not run because some dependencies were missing.
https://unity3d.com/learn/tutorials/topics/production/mastering-unity-project-folder-structure-version-control-systems
It seems that critical assets imported from the Asset Store are not contained in either of these folders, nor are they automatically generated when a project is opened, they must be installed/imported manually the first time. My goal with my version control is to be able to do a fresh pull from git and be able to run the project off the bat.
The missing assets seem to be located in /Library/PackageCache/. Copying the folder to the test environment doesn't work, as this folder is cleared the first time Unity is run. What files do I need to keep to make this work?
According to the Unity manual, you only need to include 3 folders into your version control system:
"When checking the project into a version control system, you should add the Assets, Packages and the ProjectSettings directories to the system."
The easiest way of setting up version control for Unity it to use Unity's own version control called Plastic SCM. It has two modes: Programmer mode and artist mode. I recommend Artist mode (Called Plastic Gluon) for ease of use especially if you are the only person working on the project. In both modes, Plastic SCM will automatically includes what is necessary and exclude the unnecessary files.

Linked Files and Folder in IntelliJ

As previous Eclipse user switched to IntelliJ I would like to be able to access folder external to my project from inside the IDE, while developing.
In Eclipse I was using the feature Creating linked resources.
I wonder if there is any feature in IntelliJ that helps me to access external files and folder in a similar way (for instance, if I want to edit the configuration of my application server which is located outside my project).
Yes you can do it by adding an new content root in your module.
You do that from
Project Structure (alt+ctrl+shift+s) - Modules - "My-Module" - + Add Content root
Now you have the contents of the added folder available in your project.
I was searching for a way to get the asset folder link working in IntelliJ as it was working in Eclipse and I found following link in the wikis of libgdx itself.
Linking the asset directories
It describes basically three approaches:
Just copy the asset folder into the desktop folder. (BAD)
Use the asset folder in the android project as working directory for the desktop project through 'Run-Configurations'. (GOOD)
Create a symbolic-link (GOOD)
I tested the 2nd option and it's working fine for me.