2using System.Collections;
3using System.Collections.Generic;
4#if PLATFORM_STANDALONE_WIN
5using System.Runtime.InteropServices;
12#if PLATFORM_STANDALONE_WIN
13 [DllImport(
"user32.dll", SetLastError =
true)]
14 static extern IntPtr FindWindow(
string lpClassName,
string lpWindowName);
15 [DllImport(
"user32.dll", SetLastError =
true, CharSet = CharSet.Auto)]
16 public static extern bool SetWindowText(IntPtr hwnd, String lpString);
20 IntPtr hWnd = (IntPtr)FindWindow(
"UnityWndClass", Application.productName);
21 SetWindowText(hWnd, Application.productName +
" - v" + Application.version);
26 public bool useOnGUI =
true;
30 Debug.Log(Application.productName +
" - v" + Application.version);
31 if (GetComponent<Text>())
41 GUI.Label(
new Rect(500,5,500,100), Application.productName +
" - v" + Application.version +
" " +
NetworkManager.
instance.selectedLevel.name);