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;

1 Answer

1

Change the first line to:

var gamePadInstance : GamePad;