低調の美國生活

各種疑難雜症

Unity Tips: Data Types

x25
10月9日2014年

unity-tips-data-types

Learning some code tips from Unity Web Site

Value Type Data

  • int
  • float
  • double
  • bool
  • char
  • Structs (contains more variables than others)
    • Vector3
    • Quaternion

Reference Type Data

  • Classes
    • Transform
    • GameObject

Value Type data contains “value”

Reference Type data contains “memory address” with the value is stored

 

<this is my learning note from Unity3D.com>


發佈於 10月9日2014年