Day 5 - Tumblr, Chapter 4, Find() and Strip

Published November 05, 2012
Advertisement
Mirrored from my blog (en, pt-br).

On day 5 I create this tumblr, posted the pass days and finish of read the chapter 4 of the book.

As I said earlier I had begun writing at Penzu, but I decided write in some place public and more known. As I wanted something simple and practical I opted for tumblr instead wordpress. Create an account and posting took a while, but it was pretty easy.

Chapter 4 continued talking about script and some basic programming concepts. There was nothing new to me, I just have a question when using the Find() function.

The Find() of the GameObject class returns a reference to a GameObject that is on the Scene (objects that are in the hierarchy). As the objects in the hierarchy don't need have a unique name, what the Find() will return when two or more objects have the same name?

I did a little test and the answer is that the Find() returns a reference to the first object it encounters, regardless if there is more than one.

One thing that was annoying me, and that a resolve today was that Unity give a warning when the end of file doesn't was saved in Windows(CR LF) format. To resolve it I install the plug-in Strip'em that can be set to save in Windows(CR LF) automatically.

tumblr_maq9fiEFu31rxq0qy.png

[size=2]PS: Sorry for the bad english.
Previous Entry Day 4 - What time is it?
Next Entry Day 6 - Blender 3D
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Day 39

1589 views

Day 38 - Idleness

1208 views

Day 37

1243 views

Day 36

1280 views

Day 34 - College

1060 views

Day 35 - Idleness

1114 views

Day 33 - College

1148 views

Day 32

1314 views

Day 31

1252 views

Day 30

1308 views
Advertisement