Custom
亿百个达不刘
这个作者很懒,什么都没留下…
展开
-
读取Text方法 用,隔开
string[] split; /// <summary> /// 读取text配置文件 /// </summary> void ReadLanguageConfig() { string textAsset = Application.streamingAssetsPath + "/xxx.txt"; ...原创 2020-04-09 18:47:05 · 166 阅读 · 0 评论 -
unity inputfield 回车或者tab换行
using UnityEngine;using UnityEngine.UI;using UnityEngine.EventSystems;public class ChangeInputLine : MonoBehaviour{ /// <summary> /// 用来获取当前是否处于Input的焦点状态 /// </summary>...原创 2020-03-22 13:50:16 · 2228 阅读 · 0 评论 -
Unity Mathf 数学运算
Unity Mathf 数学运算Mathf.Abs绝对值计算并返回指定参数 f 绝对值。Mathf.Acos反余弦static function Acos (f : float) : float以弧度为单位计算并返回参数 f 中指定的数字的反余弦值。Mathf.Approximately近似static function Approximately (a : float, ...原创 2020-03-21 16:36:44 · 175 阅读 · 0 评论 -
win10设备驱动器无效图标
win10设备和驱动器里无效图标删除的具体步骤如下:1、在Cortana搜索栏输入regedit后回车2、定位到HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\Nam...原创 2020-03-01 11:40:35 · 480 阅读 · 0 评论 -
unity获取时间方法
Debug.Log(System.DateTime.Now); // 当前本地时间 (年月日时分秒) -- 10/4/2018 9:38:19 PM Debug.Log(System.DateTime.UtcNow); // 当前世界时间 (年月日时分秒) -- 10/4/2018 1:38:19 PM Debug.Log(Sy...原创 2020-02-28 10:36:37 · 3025 阅读 · 0 评论 -
List查找相同元素并删除和list保存
list <>.Distinct().ToList();//删除listList<float> vs = new List<float>(另一个list);原创 2020-02-21 16:56:20 · 380 阅读 · 0 评论 -
hook
本脚本作用 拦截原有按键 修改成另一个按键环境win10 打包参数 IL2CPP 2018.2.0f2 Windows X86 .NET 4.x放到Unity里注意当unity失去焦点时 应取消键盘钩子 否则在程序外也会生效using UnityEngine;using System;using System.Diagnostics;using System....转载 2020-01-15 11:28:17 · 137 阅读 · 0 评论 -
查看电脑已经链接的Wifi密码
netsh wlan show profiles name="XXX链接Wifi的名字XXX" key=clear原创 2020-01-13 17:29:02 · 101 阅读 · 0 评论 -
调用系统软件盘支持IL2CPP
using System;using System.Collections;using System.IO;using System.Runtime.InteropServices;using UnityEngine;using UnityEngine.EventSystems;using UnityEngine.UI;using TMPro;namespace zFrame.Ex...原创 2020-01-02 15:51:04 · 157 阅读 · 0 评论 -
删除指定路径下所有内容和把文件或文件夹重命名
public void DeleteAllFile(string fullPath) { //path为路径,可以右键文件选择属性看到 //判断路径或文件夹是否存在 if (Directory.Exists(fullPath)) { //返回所有文件夹的路径 var dirs ...转载 2019-12-06 16:48:30 · 187 阅读 · 0 评论 -
打包之后等比放大缩小
using System.Collections;using System.Collections.Generic;using UnityEngine;using System;using System.Runtime.InteropServices;public class DrawGame : MonoBehaviour{ [DllImport("user32.dll")]...原创 2019-12-06 16:48:44 · 155 阅读 · 0 评论 -
鼠标滑动判断移动方向
using System.Collections;using System.Collections.Generic;using UnityEngine;public class zuoyoiu : MonoBehaviour{ private Vector2 first = Vector2.zero; private Vector2 second = Vector2.ze...原创 2019-12-06 16:49:29 · 405 阅读 · 0 评论 -
C#控制电脑关机重启等操作
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Microsoft....原创 2019-12-06 16:49:38 · 727 阅读 · 0 评论 -
获取原生旋转值 Inspector
public Vector3 GetInspectorRotationValueMethod(Transform transform) { // 获取原生值 System.Type transformType = transform.GetType(); PropertyInfo m_propertyInfo_rotationOrder =...转载 2019-12-06 16:56:06 · 769 阅读 · 0 评论 -
控制物体旋转和控制角度
//注意模型的轴向和U3d轴向是否一致public float turnSpeed = 20;// Update is called once per framevoid Update() { Rotate(); ClampRot(-55, 55); } void Rotate() { ...转载 2019-12-06 16:56:19 · 955 阅读 · 0 评论 -
Unity自动创建Txt和读取TXT 往Txt里面可以写入 两种创建方法和四种读取方式
using System.Collections;using System.Collections.Generic;using UnityEngine;using System.IO; //操作文件夹时需引用该命名空间using System.Text;public class TxtWriteAndRead : MonoBehaviour{ void Start() ...转载 2019-12-06 16:56:13 · 1640 阅读 · 0 评论 -
使用RotateAround的坑
unity 使用RotateAround的使用注意1.对于一个固定的点,围绕它进行旋转。需要注意区分世界坐标还是本地坐标 RotateAround(GameObject.Find("Cave").transform.position,transform.right,Time.deltaTime*10); RotateAround(GameObject.Find("Cave"...原创 2019-12-06 16:56:30 · 1160 阅读 · 0 评论