Version: Unity 6.5 Alpha (6000.5)
Language : English
Create a property visitor with low-level APIs
Introduction to Unity math APIs

Programming with math

Unity provides several APIs for mathematical operations commonly required in games programming, including common mathe functions, random numbers, and systems such as vectors, matrices, and quaternionsUnity’s standard way of representing rotations as data. When writing code that deals with rotations, you should usually use the Quaternion class and its methods. More info
See in Glossary
.

Topic Description
Introduction to math programming in Unity Understand the different math APIs Unity provides and how they compare.
Unity Engine math APIs Use the collection of math APIs in the Unity.Engine namespace to access common mathematical operations, including trigonometric and logarithmic functions, random number generation, and working with vectors, matrices, and quaternions.
Unity Mathematics APIs Use the collection of SIMD-friendly, Burst-compilable math APIs in the Unity.Mathematics namespace to access common mathematical operations, including trigonometric and logarithmic functions, random number generation, and working with vectors, matrices, and quaternions.

Additional resources

Create a property visitor with low-level APIs
Introduction to Unity math APIs
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961