Question by
surfuay · Mar 20, 2019 at 12:06 AM ·
transform.positiontime.timescale
transform.position assign attempt error when using time.timeScale
Hey guys
I don't know what's happened but suddenly my game is giving me the error
transform.position assign attempt is not valid for Player (clone)
on this specific line
transform.position = Vector3.Lerp(transform.position, _myPosition, _speed * Time.deltaTime * 1/Time.timeScale);
i've had no problems with it and all of a sudden it's making big problems.
Comment
Are you sure you don't set Time.timeScale
to 0 somewhere in your code? You may be interested in Time.unscaledDeltaTime
Your answer
![](https://koobas.hobune.stream/wayback/20220612193926im_/https://answers.unity.com/themes/thub/images/avi.jpg)