Unity Tips: Data Types

views

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>

This entry was posted in Unity小技巧 by Mr.M. Bookmark the permalink.


Leave a Reply

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