Newbie to Unity....
So I have my space fighter showing in my game after I instantiate it (with lights, etc) and it looks good.
I now, of course want to move it around (and have the camera follow).
So I see the standard asset 3rd person controller script.
I am not able to make out how do I use this controllers with my space fighter.
I drop 3rd person controller in my scene and I can move the default construction guy around.
But how do I discard the construction guy and put my space fighter in instead??
Thanks for any help!
i dont mean to add 3rd person controller in your space fighter prefab, you just need to add 3rd person controller SCRIPT and 3rd person camera SCRIPT, not the 3rd person construction worker itself, if you added these 2 scripts to your space ship fighter, and your space ship still cannot move or cannot be seen, make sure when u add 3rd person controller you set your controller collider well aligned to the ground(means collider must stay on the ground) there shouldnt be any other problem
– anon47159628Thanks for your patience! I am not out of the woods yet. Okay so I added the scripts and when I run I get a null exception inside the thirdpersoncontroller on this line: var cameraTransform = Camera.main.transform; Any idea why?
– anon11751313Okay... I kept futzing around with it. did some stuff. deleted and recreated some of the objects and... all of sudden it is working! Not sure what the earlier problem was. Thank you!!
– anon11751313good to go then :) it works this way anyway, for your null exception error you must drag your main camera into Camera Transform of your 3rd person camera in your inspector pane :) good day !
– anon47159628Thanks :)
– wam3d