当前位置: 首页 > wzjs >正文

网站建设合同有哪些怎么在百度做免费推广

网站建设合同有哪些,怎么在百度做免费推广,外贸网站优化公司,大连专业模板网站制作【Unity】改变游戏运行时Window的窗口标题 零、需求 Unity打包好的Windows程序,启动后如何更改窗口标题?因为看着英文的感觉不太好,故有此想法。什么?你说为啥不改项目产品名?产品名会被写到文件夹名中,感…

【Unity】改变游戏运行时Window的窗口标题

零、需求

Unity打包好的Windows程序,启动后如何更改窗口标题?因为看着英文的感觉不太好,故有此想法。什么?你说为啥不改项目产品名?产品名会被写到文件夹名中,感觉后面可能会有问题……

壹、解决方案

代码如下:

using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using UnityEngine;public class ChangeWindowTitle : MonoBehaviour
{/// <summary>/// 记录当前的窗口标题/// </summary>public static string TitleText = "";/// <summary>/// 窗口句柄,只能获取一次,后面获取的无效/// </summary>private static System.IntPtr windowHandle;/// <summary>/// 是否已经获得窗口句柄/// </summary>private static bool isGotWindowHandle = false;[Header("Windows窗口标题设置")][Tooltip("窗口标题文字")]public string title = "窗口";[Tooltip("是否自动设置窗口标题文字")]public bool autoSet = true;[SerializeField][Header("标题设置状态")][Tooltip("标题是否已经设置过至少一次")]private bool isSet = false;#if UNITY_STANDALONE_WIN[DllImport("user32.dll")]private static extern System.IntPtr FindWindow(string className, string windowName);[DllImport("user32.dll", CharSet = CharSet.Unicode, SetLastError = true)]private static extern bool SetWindowText(System.IntPtr hwnd, string title);
#endifvoid Update(){if (autoSet && !isSet){setTitle(title);}}public void setTitle(string title){isSet = true;
#if UNITY_STANDALONE_WINTitleText = title;if(!isGotWindowHandle){// 获取窗口句柄windowHandle = FindWindow(null, Application.productName);isGotWindowHandle = true;}// 设置新标题SetWindowText(windowHandle, title);
#endif}
}

要注意的都写在注释里了(应该)。把它挂到对象上,直接调用public void setTitle(string title)来设置标题就好啦,要是不想写代码,也可以在面板里设置,默认会帮你设置一次标题窗口的~
好,以上就是全部内容,点个赞再走呗?不会的评论区见~ (◍•ᴗ•◍)❤


文章转载自:

http://izA92Jnx.gbxxh.cn
http://aKAH4MV1.gbxxh.cn
http://2FV0cqKc.gbxxh.cn
http://OxVa7SnV.gbxxh.cn
http://wC7S5wit.gbxxh.cn
http://Ty3LaSQj.gbxxh.cn
http://9ziwVifc.gbxxh.cn
http://GbZFlo8d.gbxxh.cn
http://98FHcPRu.gbxxh.cn
http://k4MLDdNV.gbxxh.cn
http://g3agbR91.gbxxh.cn
http://S3VeD4ef.gbxxh.cn
http://Y8R8ZidT.gbxxh.cn
http://dEpzNh4l.gbxxh.cn
http://mBvt2mft.gbxxh.cn
http://Fj4KnMg1.gbxxh.cn
http://sKwqS4x0.gbxxh.cn
http://HDlbrcNZ.gbxxh.cn
http://sQBsTGZL.gbxxh.cn
http://7QXuK1mQ.gbxxh.cn
http://AvdrKAAA.gbxxh.cn
http://AyPwnLd1.gbxxh.cn
http://RDrC0Lr6.gbxxh.cn
http://uCXZUA4y.gbxxh.cn
http://deUxyjTy.gbxxh.cn
http://VTL2oh0R.gbxxh.cn
http://PfQrplmL.gbxxh.cn
http://7ZE61O66.gbxxh.cn
http://nTBjc78t.gbxxh.cn
http://IMRsNtVB.gbxxh.cn
http://www.dtcms.com/wzjs/772673.html

相关文章:

  • 建设部物业证书查询官方网站wordpress 命令行高亮
  • 做网站的一些好处国内顶尖的公司
  • 苏宁易购网站上的营销页面专业建设网站多少钱
  • 门户网站类型wordpress打字不显示
  • vue做的博客网站公司做网站的原因
  • 盐城网站开发公司企业网站建设的策划书
  • 苏华建设集团网站荥阳市建设局 网站
  • 西安网站开发招聘郑州网站推广服务
  • 深圳住 建设局网站慈溪哪里有做网站
  • 做ppt的兼职网站广州 flash 网站
  • e盒印网站开发中国企业网查询系统官网
  • 旅游景点网站建设建设部网站监理注销查询
  • asp网站变慢公司网站建设哪个最好
  • 北京网站建设找降龙wordpress文章图片目录
  • ppt模板免费的网站蓬莱做网站
  • 网站建设人才有哪些网站制作方案有哪些
  • 中山外贸营销网站建设开发平台 华为
  • 做网站说什么5.0啥意思做标签这个网站刷单安全吗
  • 免费做店招哪个网站好网上做网站怎么防止被骗
  • 官方网站模版自己做网站自己做推广教程视频教程
  • 网站界面风格一媒体app软件下载老版本
  • wordpress怎么写网站关键词和描述小视频制作软件app
  • 南宁网站如何制作怎么制作糖葫芦教程
  • 做网站程序看什么书网站域名归属权
  • 石油 技术支持 东莞网站建设中国核工业二三建设有限公司太平岭项目部
  • 临沂网站建设wyjzgzs哪些网站是营销型网站及原因
  • 企业网站建设的评价指标洛阳网站推广优化
  • 自由型的网站长沙门户网站有哪些
  • 网站如何调用数据库建站公司前途
  • 山东富泰建设工程有限公司网站设计师可以在哪些网站接单