Unity 3 D Course Lesson 6 Advanced Scripting

  • Slides: 5
Download presentation
Unity 3 D Course Lesson 6. Advanced Scripting & Performance optimizations

Unity 3 D Course Lesson 6. Advanced Scripting & Performance optimizations

Advanced Scripting § Coroutine methods § IEnumerator § WWW form § Add/Edit menus in

Advanced Scripting § Coroutine methods § IEnumerator § WWW form § Add/Edit menus in Editor § Player. Prefs Lection 6. Advanced Scripting & Performance optimizations

Lection 6. Advanced Scripting & Performance optimizations Performance optimization § Object Pooling vs Instantiate

Lection 6. Advanced Scripting & Performance optimizations Performance optimization § Object Pooling vs Instantiate § Cache components lookups § Calling methods in update § On. Became. Visible § Poly. Count § Draw. Calls § Texture size § Backed shadows

Code practices § Do not Use lambda § Do not Use Linq § Always

Code practices § Do not Use lambda § Do not Use Linq § Always use Array instead of List if possible § Always use for loop if possible § Always strongly type Lection 6. Advanced Scripting & Performance optimizations the variables § Bulk operations in loop of IEnumerator § Always destroy GOs that are not in use § It’s ok to call GC in a moment where it’s not likely to lag.

Lection 6. Advanced Scripting & performance optimizations Useful links § http: //docs. unity 3

Lection 6. Advanced Scripting & performance optimizations Useful links § http: //docs. unity 3 d. com/Manual/Log. Files. html § http: //docs. unity 3 d. com/Manual/Platform. Depen dent. Compilation. html § http: //docs. unity 3 d. com/Script. Reference/Menu. It em. html § http: //docs. unity 3 d. com/Script. Reference/Asset. Bu ndle. html § http: //docs. unity 3 d. com/412/Documentation/Scri pt. Reference/index. Performance_Optimization. ht ml