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>

Leave a Reply

Your email address will not be published. Required fields are marked *