计算帧率

因为Time.deltaTime受到时间缩放因子的影响,所以使用Time.unscaleDeltaTime

FPS = (int)(1f/Time.unscaleDeltaTime);


首页 我的博客
粤ICP备17103704号