Unity3d屏幕分辨率自适应问题
摘要:解决屏幕分辨率的脚本主要有2个(UIAdapt,ScaleAdapt) 1.UIAdapt脚本 using UnityEngine;using System.Collections; /// <summary>/// 单例类 ,不用挂载 /// </summary>public class UIAd
阅读全文
Unity调用系统窗口选择文件或文件路径
摘要:using UnityEngine;using System.Collections;using System;using System.Runtime.InteropServices;[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Au
阅读全文
获取camera截屏图片
摘要:Camera camera; SpriteRenderer sprRender; Texture2D t2d = New Texture2D(1300, 760, TextureFormat.RGB24, false) RenderTexture rt = New RenderTexture(130
阅读全文