I get this really strange error from my DrawPathFullTrackScript:
An instance of type 'DrawPathFullTrackScript' is required to access non static member 'linepos'.
What I don’t get is, linepos is declared as:
var linepos:Vector3;
in the SAME script I get the error from.
Do I have to reference a script in the same script or what is wrong here?
Without seeing the rest of your code: I would guess you try to access the variable from within a static function. But since non static members only exist within an instance of an object (unlike static ones that exist in the class itself) you can’t access it. Either make your member variable static or try and get an instance of your object first (using the singleton pattern might help with that)