how to lock my game fps to 30 or 60?

if i don’t lock my game fps, the speed of scrolling change, so if i don’t limit the fps my game will just broken.
thanks for help

Application.targetFrameRate = 30; or 60; and a value of -1 uses the platform default fps. Put this line in the Awake() method of your script.