- Home /
 
BCE0019: 'target' is not a member of 'Object'.
GamePad.js being one of the default scripts in Unity.
       var gamePadInstance ;
       
       function Start () {
            gamePadInstance=GetComponent(GamePad);
 
            gamePadInstance.target = RacerP;
       }
 
               Within GamePad.js I have changed target to a so that I can assign game objects as target values for the camera.
 var target : GameObject;
 
              
               Comment
              
 
               
              Answer by robertbu · Feb 24, 2014 at 01:30 AM
Change the first line to:
 var gamePadInstance : GamePad;
 
              Your answer
 
             Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Problem with camera in game mode. 0 Answers
How to rotate the camera smoothly for just 1 second? 2 Answers
One animation for two objects 0 Answers