unity how to check current frame rate in script code example Example: how to set the frame rate unity Application.targetFrameRate = 300;