If you accept the update, the API updater updates all scripts in the same compilation unit.When you reopen your project, Unity compiles your scripts and triggers the API updater. If it finds any errors or warnings, it displays a dialog offering an automatic update.Ĭlose the Editor and back up your project before you let the API updater update your scripts or assemblies.If it doesn’t find any errors or warnings, the process ends.The API updater checks for updatable compiler errors or warnings that it can handle.The steps below describe the workflow of the API updater when Unity triggers a script compilation: If you accept, it rewrites any obsolete code with the recommended updated version of the API.įor example, the API updater would convert the following obsolete statement from: lor = Color.red The API updater offers to update any obsolete code that it detects. When a script compilation is triggered, the API updater runs automatically. ![]() You must manually resolve other errors or warnings that the API Updater cannot handle. ![]() These are indicated as UnityUpgradable in the console message. Note: The API Updater can only fix certain errors and warnings in the API. The API updater consists of the ScriptUpdater and the AssemblyUpdater, which are responsible for updating source code (scripts) and assemblies (dll files) respectively. More info See in Glossary and assemblies. To minimize the impact of breaking changes, the API updater identifies and updates obsolete code in your scripts A piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. ![]() Occasionally, these improvements might introduce breaking changes when moving from one major Unity version to another. To improve usability and performance, Unity might change the way classes, functions and properties (the API) work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |