Reimporting your SDK

Parts of your SDK

The SDK has a few folders, some of which you don’t want to delete, so don’t do so just yet.

These folder are:

/SerializedUdonPrograms
/Udon
/VRChat Examples
/VRCSDK

If you have UdonSharp as well, then you’ll want to look for these folders too:

/Gizmos/UdonSharp
/UdonSharp

SDK Downloads

SDK3: https://vrchat.com/home/download

UdonSharp: https://github.com/vrchat-community/UdonSharp/releases/

UdonSharp has been moved to a different Repo and has no releases under that page yet, you can use this link while the Repo gets updated:
https://github.com/MerlinVR/UdonSharp/releases/tag/v0.20.3
make sure to check the releases page for a newer version

Making a Backup

Deleting your SDK can be a destructive action. What this means is it’s something thats hard to undo.

If you’re uncomfortable doing this then you can make a backup of your project. Otherwise you can skip this section.

Making backups are simple, you can just copy your project folder somewhere or use some kind of packaging/archiving software, like 7-Zip or Winrar. I’ll be using 7-Zip for this.

There’s 2 ways of finding your project folder.

The first way is to right click the Assets folder in your project tab and click Show in Explorer. This will put you inside of your project folder. You can go up 1 folder to bring you outside of your project folder.

the 2nd way would to be to go into Unity Hub, Right click your project and hit Show in Explorer. This will put you outside of your project folder.

Once you are outside of your project folder, you can right click it and there should be an option for 7-Zip. You can then go into 7-Zip and click Add to “foldername.7z” This will start compressing your project folder to be used for a backup. This can take a while depending on your project size.

Opening Your Backup

To open a backup, all you need to do is extract it from your file, go into Unity Hub, click the dropdown arrow next to Open, and click Add project from disk. You then select your project folder and i’ll be added back into UnityHub.

More Advanced Backups

If you have a larger project, making a backup of your whole folder may take a while. There’s some folders that are auto generated by Unity that aren’t needed in the backup, however removing them will make the backup take longer to open the first time you do so as it’ll need to regenerate these. These folders would be:

/Library, /Temp, /Obj, /Build, /Builds, /Logs, /UserSettings, /MemoryCaptures

What to Delete

There’s only 1 folder that we Do Not want to delete. that would be the SerializedUdonPrograms folder. This folder contains all of your Udon assets. If you delete this folder it may unlink all of your UdonBehaviors and you may need to redo them all.
so: DO NOT TOUCH THIS FOLDER

All the other folders can be deleted. 

/Udon
/VRChat Examples
/VRCSDK

along with
/UdonSharp
if you have it

/Gizmos/UdonSharp
is safe to leave but can be deleted

Re importing

The order of reimporting your SDK matters. UdonSharp adds files into the SDK’s folders and needs to be imported After the SDK.

To import a Unitypackage just click and drag it into your project tab inside of Unity.

Import your SDK first
Import UdonSharp after your SDK finishes