summary of compile and run-time errors that unity beginners can easily commit
1: untiy Compile Error: NewLine in Constant
Workaround:
Method One: If the error script is relatively small, you might use Notepad to open the error script, save As, or select UTF code overlay.
Method Two: Use Edit Plus to batch open all the scripts, and then batch modify the code, modified to Unicode, problem resolution.
2: How do you make a "blur" or "twist" lens effect in the game?
A: Import the unity lens effects post-processing package. Standard Assets-〉image Effects (pro only)
3:vs always quote the line endings in the followingfile is not consistent?
Workaround:
(VS 2008/vs2012tools->options->environment->documents).
Unchecked: Check for consistent line endings on load (see)
4: How can I release the memory of Gameobject go?
For:
Use Resources.unloadunusedassets (). If you need to free memory immediately plus gc.collect (), memory may not be released immediately. However, it is recommended that resource.unloadunuseassets () be placed in an excessive scene between scenes to do better.
Otherwise, it will operate because of frequent GC. The phone will be blown away.
5: Miss Liu speaks of addcomponent (string) dynamic load script (using untiy4.x version) in your course, but I use unity5.3 version is not supported, how to deal with the problem of dynamic loading in unity5?
Answer: Use the following statement to resolve: Goneedobj.addcomponent (System.Type.GetType (strneedaddscriptname).
6:untiy5.3 above version Application.loadlevelasync is outdated which new method should I use?
Answer: Follow the prompts to modify:
UnityEngine.SceneManagement.SceneManager.LoadScene (""); Synchronous loading
UnityEngine.SceneManagement.SceneManager.LoadSceneAsync ("");//Asynchronous load
The above is the 2016 recent summary of some beginners more prone to error, for your reference.
Summary of compile and run-time errors that unity beginners can easily commit