-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update scripts to latest version of Unity #1
Comments
Install older Unity version. |
This was pushed 3 years ago. Naturally the scripts won't be up-to-date. If you need help converting to the new Unity version I will be happy to help. If you are not already, I suggest using Visual Studio as Intellisense will greatly assist in fixing any deprecated function calls. |
Example:
This is going to throw errors on the animation portion due to the following UnityUpgradeable error:
The corrected code would look something like this:
The more efficient way would be to declare a private Animation variable so you only have to call the GetComponent function once, for example:
Then define it in the Start function:
Then use the myAnimation variable. Hope this helps you out. |
I can't run this because the scripts use deprecated APIs
The text was updated successfully, but these errors were encountered: