Function that has a const and TWEEN.Tween doesn't run when set on UI button

Simple scene, I have a world space canvas with two buttons to test 2 functions, I found in the example functions below, functions ‘reset()’ and ‘Jeff()’ won’t run when called by the buttons, but the two functions I made called ‘test()’ and ‘resetCam()’ work when called by the button so those functions then call the functions that didn’t work. Why is this? Is this a bug?

  public test()
  {
    console.log("test");
    this.Jeff(); //
  }

  public resetCam()
  {
    console.log("resetcam");
    this.reset();
  }

  public reset()
  {
    console.log("reset");
    this.localTween = new TWEEN.Tween(this.mainCam.position)
    .to(this.camDefaultPos.position, this.lerpSpeed)
    .easing(TWEEN.Easing.Cubic.InOut)
    .start();
  }

  public Jeff()
  {
    this.targetPosition =  getWorldPosition(this.target[0].lookOffset);
    this.targetPosition.y = this.targetPosition.y + 2;
    console.log("Jeff");
    this.localTween = new TWEEN.Tween(this.mainCam.position)
    .to(this.targetPosition, this.lerpSpeed)
    .easing(TWEEN.Easing.Cubic.InOut)
    .start();
  }

Original Post on Discord

by user 103054507105067008

“Jeff” doesnt work because of the casing (“jeff” will work)
Not entirely sure about reset. Do you get any logs in Unity on export?

renamed jeff to floatToTarget and it works now, will close but keep an eye on this as I spent ages wondering what was up earlier!

by user 103054507105067008