Resource icon

Approved FPSDisplay 1.0

No permission to download

gintaras

Plugin Developer
Plugin Developer
Jan 10, 2017
68
138
8
Code:
        public void OnGUI()
        {
            GUI.contentColor = Color.white;
            int w = Screen.width, h = Screen.height;
            GUIStyle style = new GUIStyle();
            Rect rect = new Rect(0, h - h * 3 / 100, w / 4, h * 2 / 100);
            style.alignment = TextAnchor.UpperLeft;
            style.fontSize = h * 2 / 100;
            style.normal.textColor = Color.white;
            style.richText=true;
            float fps = 1.0f / deltaTime;
            string text = "<b>FPS: " + Math.Round(fps) + "</b>";
            GUI.Label(rect, text, style);  
        }
 

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
577
612
63
Should the path "\ save \ RustBuster2016Server" have to see folders inside? Because mine is empty.

Obs: create the ClientPlugins folder.
If you use RustBuster 1.4.8 when starting the server for the first time, the plugins folder is created automatically, just put the plugin in it

\Save\RustBuster2016Server\ClientPlugins\YOURPLUGIN.DLL
 
  • Like
Reactions: hamechi3