Unity3DStudent.com - B28 - SendMessage to external functions
Uploader Comments (willgoldstone)
All Comments (14)
-
This is the best Unity Tutorial on youtube i've seen so far Perfect pacing by the way. Thumbs up
-
how would i make a message that is not gameObject dependent, so if i wanted to put any game object that i assign to it....like,
var gameObject01 : GameObject; //switch
var gameObject02 : GameObject; //block
or the col to something like this...
function OnCollisionEnter(col : Collision)
{ if(col.gameObject01 == gameObject01.GameObject) { gameObject02.GameObject.SendMe
ssage("React"); } }
but it doesn't seem to work...could you help me out thanks..
-
How would i make a script if i wanted all of the objects with a certain tag to have the message sent to it?
-
your the man, Will
-
@NorwegianStudios what do you mean by downloadable content? just make a link to the file you want people to download and make sure its in a non browser readable format like .zip, and it'll download.
That was one of the coolest things I've seen in Unity3D. Will, could you create another tutorial using messaging? That has something to do with updating a score or decreasing life of an gameobject?
strongme80 2 months ago
@strongme80 well that's what you need to combine - just use the other things learned via unity3dstudent together to get those effects. for example you could take a collision and when that occurs, use sendmessage to make something happen. I make use of SendMessage in my new book quite a lot, if you are learning Unity you might want to check it out, its called Unity 3.x Game Development Essentials by Will Goldstone.
willgoldstone 2 months ago