Wednesday, March 27, 2013

Change Frame Rate in Unity3D

The FPS framerate in Unity3D is easier than ever with Unity3D 3.5+.

Below is the JS and the C# code counterpart:


    function Awake () {
        // Make the game run as fast as possible in the web player
        Application.targetFrameRate = 300;
    }
public class example : MonoBehaviour {
    void Awake() {
        Application.targetFrameRate = 300;
    }
}

No comments:

Post a Comment