Difference between this.transform.position and transform.position = paddlePos;

As far as I can tell both ways of coding the transform.position method result in the same outcome. What’s the purpose of the this keyword in this case?

    this.transform.position = paddlePos;

    //alternative form of writing this
    transform.position = paddlePos;


I actually answered this question not long ago :slight_smile:

1 Like

Privacy & Terms