摘要:
在游戏开发中,经常需要批量设置图片的格式为Sprite类型,手动设置太麻烦,下面的编辑器脚本实现选中文件夹右键/Texture/SetAllImagesToSpriteType实现批量设置图片格式,具体格式参数可自行定义 using System; using System.IO; using Un 阅读全文
摘要:
一、Thread类:最直接的方式开启线程最直接的方式是使用System.Threading.Thread类。这种方式简单明了,适合快速启动线程执行简单任务。 Thread thread = new Thread(() => Console.WriteLine("Hello from a new th 阅读全文
摘要:
1、编写一个死循环方法,然后运行调试vs using UnityEngine; public class DeadLoop : MonoBehaviour { // Start is called before the first frame update void Start() { DeadLo 阅读全文