Unity3DStudent.com - B28 - SendMessage to external functions

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
10,043
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 2, 2011

Part of the Unity3Dstudent.com teaching program of Unity tutorials by Will Goldstone, author of Unity Game Development Essentials.

Learn Unity game engine in short modules that give you the skills you need abstracted from game scenarios to maximise your creativity and complete challenges based on these modules to test your skills.

Link to this comment:

Share to:

Uploader Comments (willgoldstone)

  • 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 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.

see all

All Comments (14)

Sign In or Sign Up now to post a comment!
  • 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.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more