playMaker

Author Topic: Differences between the 13 kind of variable [SOLVE]  (Read 1815 times)

vonpopov

  • Junior Playmaker
  • **
  • Posts: 98
Differences between the 13 kind of variable [SOLVE]
« on: January 24, 2014, 09:01:36 AM »
Hi,

I tryed to find the information on the website, and google, but i found nothing. Maybe this is my fault, so just point me out where to look.

But, here is my question, i would like to know the difference (and what is it usefull for) on each kind of variable available on playmaker :

Float, int, bool, gameobject, string, vector2, vector3, color, rect, material, texture, quaternion, object.

Actually, i'm use to work with vector3/float/string.

thanks you
« Last Edit: January 24, 2014, 09:13:45 AM by vonpopov »

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
Re: Differences between the 13 kind of variable
« Reply #1 on: January 24, 2014, 09:06:13 AM »
float - Decimal numbers - 1.4
int - whole numbers - 1
bool - True or False
gameObject - Any object in the game - A unity object
string - Text - "Hello"
vector2 - 2 Floats x and y often used for positions or velocities - 4.3, 4.2
vector3 - 3 floats x, y and z - Read up on vectors
color - RGBA Red Green Blue Alpha is a color
rect - A rectangle x, y, width, height
material - A material place a texture on it - research it
texture - a image - research it
quaternion - research it
object - Like a game object but can be anything and used in the editor as well



Just a brief explanation off the top of my head. Read into vectors at the very least.

vonpopov

  • Junior Playmaker
  • **
  • Posts: 98
Re: Differences between the 13 kind of variable [SOLVE]
« Reply #2 on: January 24, 2014, 09:14:23 AM »
Thanks you so much !
you rocks  8)


I am printing that right now :)