Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!






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

Posted by Alex.SilR, in General 05 November 2012 · 342 views

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.

Posted Image

PS: Sorry for the bad english.




December 2014 »

S M T W T F S
 123456
78910111213
14151617181920
212223 24 252627
28293031   

Recent Entries

PARTNERS