自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (2)
  • 收藏
  • 关注

转载 unity 观察者模式

【代码】unity 观察者模式。

2024-07-19 09:39:46 4

原创 unity在工程中单独打包代码

【代码】unity在工程中单独打包代码。

2023-05-30 11:47:32 339 1

原创 unity中json数据的转换

一下是simpleJson的内容。

2023-03-27 19:47:53 1159

原创 unity中 c#操作数据库的方法

1、c#操作的基础类,用于编辑sql语句进行操作using UnityEngine;using System;using MySql.Data;using System.IO;using System.Data;using System.Collections;using MySql.Data.MySqlClient;using System.Collections.Generic;public class SqlAccess{ public static MySqlCon

2021-03-26 18:22:58 361 1

原创 unity c#读取excel文档的方法

读取excel文档内容的方法,不过xls和xlsx后缀不同,里边内容有些许不同 /// <summary> /// 只读Excel方法 /// </summary> /// <param name="ExcelPath"></param> /// <returns></returns> public static void GameReadExcel(string ExcelPath).

2021-03-17 09:32:14 266

原创 unity 3维画线,绘制坐标轴、圆环、弧、三角面

using System.Collections.Generic;using UnityEngine;/// <summary>/// 绘图类/// </summary>public class GraphicsBehaviour : MonoBehaviour{ public enum PointMode { GLPoint, ScreenPoint } //private bool i...

2021-01-30 15:31:37 1839 1

原创 unity 模型批量截图的方法

事先把模型打包成ab包,然后加载包内的模型进行截图using System.Collections;using System.Collections.Generic;using System.IO;using UnityEngine;public class jietu : MonoBehaviour{ // Start is called before the first frame update public GameObject cba; private T

2020-11-24 18:32:48 638 1

原创 unity 打包ab包的方法,加载的方法

using UnityEditor;using System.IO;using UnityEngine;public class AssetBundleBuild { [MenuItem("AssetsBundle/Build AssetBundles")] static void BuildAllAssetBundles() { string dir = Application.streamingAssetsPath+"/AssetBundle"; ..

2020-11-24 18:21:27 2829

原创 unity 鼠标拖拽旋转物体

if (Input.GetMouseButton(0)) { OffsetX = Input.GetAxis("Mouse X");//获取鼠标x轴的偏移量 transform.Rotate(new Vector3(0, -OffsetX, 0) * speed, Space.World); } if (Input.GetMouseButton(1)) { ...

2020-10-09 15:56:15 632

原创 在unity中,关于HttpWebRequest不能连接https前缀接口的问题

在Create之前加上这句代码 //连接https需要加上 ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult);下边是相关的方法 private static bool CheckValidationResult(object sender, X509Certificate certificate.

2020-05-21 18:16:43 618

原创 unity 中解压zip的方法

之前用的下边这种方法,发现在工程中没有问题,打包出来之后抛出异常,看了日志,发现是解压的问题 /// <summary> /// 解压的方法,打包抛出异常 /// </summary> //public void OpenZip(string strZipPath, string strUnZipPath) //{ // //string strZipPath = Application.streamingAssetsPath .

2020-05-21 18:09:32 2149 1

ExcelDll.zip

ExcelDll.zip

2021-07-23

Unity Super TreeView 1.24(含说明文档).zip

Unity Super TreeView 1.24(含说明文档).zip

2021-07-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除