@DaveVoyles ooh! I can help (maybe)! What's the issue? For 1, .transform is like calling GetComponent <Transform>()
I am never going to figure out hwo to get gameObject.transform to work as C# in unity.
-
-
-
@MattrifiedGames here is my best explination http://pastebin.com/9qVHRj8Q
- Show replies
New conversation -
-
-
@DaveVoyles Pretty sure your error is because you need to cast the Instantiated object to GameObject before using any GO-related stuff... -
@blindgoatia That's exactly what it was
End of conversation
New conversation -
-
-
@DaveVoyles I recommend using "as" for casting in C# over (GameObject). No error thrown and instead your object is null if it can't cast -
@blindgoatia I saw that there were 2 ways of doing that. Wasn't sure if there was a preference of 1 over the other (ie - using "as")
End of conversation
New conversation -
-
-
@DaveVoyles I wouldn't worry about casting performance costs as it's pretty minimal.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.