unity3D技术之Performance Optimization 性能优化.docxVIP

  • 53
  • 0
  • 约8.54千字
  • 约 7页
  • 2017-01-05 发布于贵州
  • 举报

unity3D技术之Performance Optimization 性能优化.docx

unity3D技术之PerformanceOptimization性能优化unity3D技术之PerformanceOptimization性能优化

1. Use Static Typing使用静态类型When using JavaScript the most important optimization is to use static typing instead of dynamic typing. Unity uses a technique called type inference to automatically convert JavaScript constructs to statically typed code without you having to do any work.使用JavaScript很重要的优化是使用静态类型替代动态类型。Unity使用一种叫做类型推理的技术来自动转换JavaScript为静态类型而无需你做任何工作。【狗刨学习网】C# JavaScript using UnityEngine;using System.Collections;public class example : MonoBehaviour {public int foo = 5;}var foo = 5;In the above example foo will automatically be inferred to be an integer value. Thus Unity can apply a l

文档评论(0)

1亿VIP精品文档

相关文档