|
How do I add lights and cameras to scenes using cSharp script. Here's how I did it in javascript :
(comments are locked)
|
|
WOOT! I got it working with one addition to your code should be and the same for adding Camera forgot to add the typeof statement. Thanks to remind!
Oct 29 '11 at 06:08 PM
Ludiares
(comments are locked)
|
|
it's almost the same. you don't declare the type of variable after it, it is declared before. And it would be the same for cameras. Dont need the addition line for the name, GameObject takes the overload for naming. GameObject someVar = new GameObject("nameOfMyGameObject"); Hope it helps anyone who stumbles on this! Happy Coding ;}
Mar 07 '12 at 05:57 AM
hijinxbassist
(comments are locked)
|
