Timeline for Controlling a GameObject from another GameObject's script component
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 7, 2012 at 2:16 | vote | accept | casraf | ||
| Jul 6, 2012 at 23:35 | comment | added | brandon | What do generics mean in general...heh | |
| Jul 6, 2012 at 14:09 | comment | added | Chuck D | Updated my answer. The syntax I used is standard c# generics. Read up on .net generics to become more familiar with the syntax. GetComponent is how you get references to MonoBehavior derived classes. If CubeBehavior extends MonoBehavior, Unity treats it as a 'Component' which is why you use GetComponent(); | |
| Jul 6, 2012 at 14:05 | history | edited | Chuck D | CC BY-SA 3.0 |
added 372 characters in body
|
| Jul 6, 2012 at 11:11 | comment | added | casraf | I'm not really familiar with that syntax :s lame, I know. Could you help me figure out what it means in general? I'll try it either way and let you know the result. | |
| Jul 5, 2012 at 14:49 | history | answered | Chuck D | CC BY-SA 3.0 |