Unity3D: set target frame rate (fps) for app

Trabla: Unity3D: set target frame rate (fps - frames per second ) for app

Solving: 

Official docs: http://docs.unity3d.com/ScriptReference/Application-targetFrameRate.html

For Mobile OK fps is - 30;

Example:

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine.Events;
using UnityEngine.EventSystems;

public class GameControllerScript : MonoBehaviour {


  void Start(){
  }

  void Update(){
  }

  void Awake(){ 
      Application.targetFrameRate = 30;
  }

}

No comments:

Post a Comment