unity how to change max fps

C#
Application.targetFrameRate = 30;
Source

Also in C#: