유니티 reload SDK - yuniti reload SDK

Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts

Found the internet!

Create an account to follow your favorite communities and start taking part in conversations.

r/VRchat

Posted by7 months ago

Archived

유니티 reload SDK - yuniti reload SDK

유니티 reload SDK - yuniti reload SDK

This thread is archived

New comments cannot be posted and votes cannot be cast

If you need to update your SDK, it is important that you follow these steps to ensure the update proceeds properly and you don't have any old/conflicting files.

If you know how to use it, you may find it beneficial to use version control software like Git to manage your project. You don't need to upload your repository to Github or similar service to gain the benefits of version control. Create a commit before you upgrade SDKs just to be sure.

Keeping your SDK up to date is extremely easy with the VCC. See the VRChat Creator Companion docs to learn how to use it!

If you want to learn how to migrate your project to use the VCC, check out the guide here.

If you're using the VCC, you don't need to worry about manual updates.

For SDK3, you should be able to update by simply importing the new SDK over the old one, also known as an in-place upgrade. This is especially important for SDK3-Avatars, as you may lose State Behaviors on your animators if you incorrectly update!

If you want to be super careful, always back up your projects before updating the SDK.

  1. Close Unity.
  2. Back up your Unity project! You don't have to backup your Library folder, these files are auto-generated by Unity.

🚧Pre-2020.3.2 SDK3 Upgrade

This is an uncommon step and you probably don't need to do it.

If you are upgrading from an SDK older than 2020.3.2, go into your project's Assets folder and delete the VRCSDK and Udon folders as well as the VRCSDK.meta and Udon.meta files.

  1. Open your Unity project.
  2. Import the new SDK3 - World over the old one.

❗️Do not perform "Deletion Reinstalls" For SDK3 - Avatars!

If you delete the SDK folders with Unity closed and open Unity without the SDK installed, you will lose State Behaviors. They are fragile and do not persist through full deletion upgrades. Make sure you back up your projects often, and save/document your state behavior setups.

If you must perform a full deletion reinstall of your SDK3 - Avatars package, back up your project first. You will have to set up your State Behaviors again, so ensure you have documented them well.

  1. Close Unity.
  2. Back up your Unity project! You don't have to backup your Library folder, these files are auto-generated by Unity.
  3. Open your Unity project.
  4. Import the new SDK3 - Avatars over the old one. If you get errors after import is complete, try restarting Unity afterward.

📘SDK3 Expected Errors on Avatar Dynamics Upgrade (adsbygoogle = window.adsbygoogle || []).push({});

It is expected to have a handful of errors when you first upgrade SDK3 for Avatars to the Avatar Dynamics SDK. This is due to the SDK installing the Burst and Mathematics packages during the install process, and Unity getting a bit ahead of itself in importing them early.

If you clear the errors or restart Unity, they should go away.

If you run into issues with upgrading via the above process, try this instead:

  1. Close Unity.
  2. Make a new, blank project.
  3. Import the new SDK3 - Avatars package into that project.
  4. Close that Unity project.
  5. Using Explorer (Do not open Unity yet!), delete the VRCSDK3 folders from the project you're upgrading. Until this guide says otherwise, do not open Unity.
  6. From your new blank project that you imported the SDK into, copy the VRCSDK3 folders into your project that you're upgrading.
  7. Once the copy completes, open Unity and open your upgraded project. You may delete the blank project.

Here's how you update VRChat SDK 2. If you're just uploading avatars, you can use the following process:

  1. Please ensure you're using the correct Current Unity Version.
  2. Download the latest version of the SDK. See the Choosing your SDK page to see how to choose the correct SDK for your use.
  3. Close Unity.
  4. Find your Project folder with Windows Explorer, and find the Assets folder.
  5. Delete the VRCSDK folder, as well as the VRCSDK.meta file in the Assets folder.
  6. Relaunch Unity.
  7. Re-import the freshly-downloaded SDK. Do so by going to Assets, then Import Package, then Custom Package.
  8. Select the new SDK (you probably saved it in Downloads)
  9. Wait a moment, and click "Import" in the bottom left. If any files in the list are greyed out/unchecked, and you can't check them, you didn't delete everything you should have! Start over.
  10. Wait a minute as the SDK finishes importing.
  11. In each scene, enter Play mode, and then end Play mode. You may receive a message from Unity that it needs to update some parts of the scene. Follow those instructions, and then restart Unity.
  12. Done! You should be good to go.

If you're reinstalling the SDK in a project that contains a world using complex trigger setups, here's a safer way to update your SDK.

  1. Close Unity
  2. Back up project to another folder (do not back up the Library folder, these files are auto-generated by Unity)
  3. Delete SDK and Plugins folder, as well as the the associated .META files
  4. Create a new dummy Unity Project
  5. Install the latest SDK on the dummy project
  6. Copy the newly added SDK/Plugin and associated .META files from the dummy project into your original project
  7. Done. Now you can open your upgraded project, and there will be no crash no matter how complex your trigger work!

If you are updating from a previous version of Unity, we have a guide for updating to our latest version we support! Check out the relevant page below:

  • Migrating from 2017 LTS to 2018 LTS
  • Migrating from 2018 LTS to 2019 LTS

Updated about 1 month ago


  • Table of Contents
    • VRChat Creator Companion
      • Migrating to the VCC
    • Manual Updates
      • SDK3
      • SDK2
    • Updating Unity