随笔分类 -  unity 笔记

摘要:二、常用修饰符 在Unity中,属性修饰符可以用于控制序列化行为、编辑器显示和其他功能。以下是一些常用的Unity属性修饰符及其含义: [HideInInspector] 此属性修饰符可以隐藏一个字段或属性,使其在Inspector窗口中不可见。 [Range(min, max)] 限制一个数值字段 阅读全文
posted @ 2025-06-12 14:10 GP19 阅读(46) 评论(0) 推荐(0)
摘要:using Newtonsoft.Json.Linq;using System;using System.IO; class Program{ static void Main() { string json = File.ReadAllText("data.json"); // 从文件中读取JSO 阅读全文
posted @ 2023-11-15 10:53 GP19 阅读(2173) 评论(0) 推荐(0)
摘要:安卓文件夹下 gradleTemplate 文件 添加 代码 android.overridePathCheck=true 打包发布 阅读全文
posted @ 2023-05-16 16:20 GP19 阅读(64) 评论(0) 推荐(0)
摘要:using System.Collections.Generic; using UnityEngine; using System.Drawing; using System.Drawing.Imaging; using UnityEngine.UI; public class DongTu : M 阅读全文
posted @ 2021-07-26 12:27 GP19 阅读(470) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Security.Cryptography; using System 阅读全文
posted @ 2021-03-14 16:22 GP19 阅读(1282) 评论(0) 推荐(0)
摘要:using System.IO; using UnityEditor; using UnityEditor.Callbacks; using UnityEngine; public class PostBuildActions { [PostProcessBuild] public static v 阅读全文
posted @ 2021-03-03 10:48 GP19 阅读(345) 评论(0) 推荐(0)
摘要:Simple <color=yellow>example</color> of text created with <#80ff80>TextMesh <#8080ff>Pro</color>! 阅读全文
posted @ 2020-11-18 13:50 GP19 阅读(354) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Unity Web 阅读全文
posted @ 2020-11-17 15:45 GP19 阅读(1051) 评论(0) 推荐(0)
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; //选择轴向 public enum axisPostion { x_dir, y_dir, z_dir, } public class ho 阅读全文
posted @ 2020-11-10 15:21 GP19 阅读(738) 评论(0) 推荐(1)
摘要:public RenderTexture renderTexture; void Start() { int width = renderTexture.width; int height = renderTexture.height; Texture2D texture2D = new Textu 阅读全文
posted @ 2020-11-05 15:13 GP19 阅读(2738) 评论(0) 推荐(0)
摘要:所需dll 网盘下载 链接: https://pan.baidu.com/s/12K0eZMt6JGfQlRKYDOJ9dA 提取码: n5jx using NPOI.SS.UserModel; using System.IO; using UnityEngine; using NPOI.XSSF. 阅读全文
posted @ 2020-11-05 15:06 GP19 阅读(1370) 评论(1) 推荐(1)
摘要:创建 using System; using UnityEditor; using UnityEngine; public class CreateAsset : Editor { //在菜单栏创建功能项 [MenuItem("数据/Excel")] static void Create() { S 阅读全文
posted @ 2020-11-04 15:56 GP19 阅读(727) 评论(0) 推荐(0)
摘要:链接:https://pan.baidu.com/s/1N3lV6VEKuuXi-a9Db2XmSw?pwd=icmw 提取码:icmw --来自百度网盘超级会员V5的分享 打包出来也可使用 using System.Data; using System.IO; using Excel; using 阅读全文
posted @ 2020-11-04 15:34 GP19 阅读(523) 评论(0) 推荐(0)
摘要:插件 LibUsbDotNet.dll 网盘下载 链接: https://pan.baidu.com/s/1QoHa3sMZxAlckQJmF3mRGA 提取码: 7ybq 安装 LibUsbDotNet_Setup.2.2.8.exe 默认安装地址 C:\Program Files\LibUsbD 阅读全文
posted @ 2020-11-04 15:02 GP19 阅读(1222) 评论(0) 推荐(0)
摘要:之前遇到一个问题要从MeshCollider背面方向发出射线,直至检测到该射线与MeshCollider的相交点为止。 后来我用双面MeshCollider的方法解决了http://www.cnblogs.com/hont/p/6628841.html 但是这样又会导致许多其他问题,因为构建出来的双 阅读全文
posted @ 2020-10-07 15:41 GP19 阅读(680) 评论(0) 推荐(0)
摘要:using Newtonsoft.Json; using System.Collections.Generic; using UnityEngine; public class JsonDe : MonoBehaviour { public class Produc { public string 阅读全文
posted @ 2019-10-28 13:56 GP19 阅读(1008) 评论(0) 推荐(0)
摘要:string dir = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); 阅读全文
posted @ 2019-10-28 11:22 GP19 阅读(2061) 评论(0) 推荐(0)
摘要:using System.Collections; using System.Collections.Generic; using System.Threading; using UnityEngine; [System.Serializable] public class fangkuai{ pu 阅读全文
posted @ 2019-10-26 16:36 GP19 阅读(483) 评论(0) 推荐(0)
摘要:此功能将右边的四边行内的坐标点转换成左侧的矩形坐标点 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Calibration : MonoBehaviour { [ 阅读全文
posted @ 2019-10-24 17:20 GP19 阅读(662) 评论(0) 推荐(0)