• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
萧然CS
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页

2019年2月13日

【Unity】修改Inspector面板序列化数组时元素的显示名称(Element)
摘要: 记录一个有趣的问题,如图~ [System.Serializable]public class Item{ //只能是string类型 且必须是第一个属性 //才能修改Inspector面板序列化数组时元素的显示名称(原名称为Element) ... 阅读全文
posted @ 2019-02-13 17:54 萧然CS 阅读(510) 评论(0) 推荐(0)
 
【C#】正则表达式匹配/替换指定字符串
摘要: using System.Collections;using System.Collections.Generic;using System.Text.RegularExpressions;using UnityEngine;public class Test... 阅读全文
posted @ 2019-02-13 16:56 萧然CS 阅读(709) 评论(0) 推荐(1)
 
【Unity】用PropertyDrawer自定义Inspector面板显示外观
摘要: 举栗如图,将数组以二维矩阵的方式显示到Inspector面板 using UnityEngine;using UnityEditor;[System.Serializable]public class InspectorGrid{ public int... 阅读全文
posted @ 2019-02-13 11:53 萧然CS 阅读(225) 评论(0) 推荐(0)
 
 

2019年1月25日

【C#】System.Linq,万能的查询语句
摘要: 首先是官方文档: https://docs.microsoft.com/zh-cn/dotnet/api/system.linq?view=netframework-4.7.2https://docs.microsoft.com/zh-cn/dotnet/ap... 阅读全文
posted @ 2019-01-25 16:42 萧然CS 阅读(313) 评论(0) 推荐(0)
 
 

2019年1月24日

【C#】通过Value获取Dictionary的Key
摘要: Dictionary dic = new Dictionary(); for (int i = 0; i pair.Value == 20).Key; //获取所有符合条件的Key //没有符合条件K... 阅读全文
posted @ 2019-01-24 17:20 萧然CS 阅读(390) 评论(0) 推荐(0)
 
 

2019年1月23日

A*算法 计算2D格子地图的最优移动路径
摘要: 主要参考:unity3D 简单实现A*算法 using System.Collections;using System.Collections.Generic;using UnityEngine;using SimpleFrame;public class G... 阅读全文
posted @ 2019-01-23 17:53 萧然CS 阅读(115) 评论(0) 推荐(0)
 
使用柏林噪声随机创建像素地图
摘要: 主要参考:Unity中使用柏林噪声生成地图 using UnityEngine;using System.Collections;using System.Collections.Generic;public class RandomCreatMapByPe... 阅读全文
posted @ 2019-01-23 17:31 萧然CS 阅读(169) 评论(0) 推荐(0)
 
 

2019年1月20日

【Unity】打包导出包体文件夹后 自动修改包体内文件文本数据
摘要: using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEditor;using UnityEditor.Callbacks;using Sy... 阅读全文
posted @ 2019-01-20 18:42 萧然CS 阅读(235) 评论(0) 推荐(0)
 
 

2019年1月18日

【Unity】打包Android问题记录 "Program type already present"(Gradle下载文件冲突)
摘要: Unity打包Android: Unity项目中有多个SDK,其中一个SDK需要利用Gradle自动下载SDK所需的文件(aar/jar)包,在Unity直接打包Apk,或Unity导出AS(Android Studio)工程,AS导出Apk,会有以下两种可能... 阅读全文
posted @ 2019-01-18 00:40 萧然CS 阅读(250) 评论(0) 推荐(0)
 
 

2019年1月8日

【Unity】利用三角函数曲线模拟3D水面波动效果(Mesh顶点变化)
摘要: 这里用的是正弦曲线:y=Asin(ωx+φ)+k A——振幅,当物体作轨迹符合正弦曲线的直线往复运动时,其值为行程的1/2(ωx+φ)——相位,反映变量y所处的状态φ——初相,x=0时的相位;反映在坐标系上则为图像的左右移动k——偏距,反映在坐标系上则为图像的... 阅读全文
posted @ 2019-01-08 21:07 萧然CS 阅读(223) 评论(0) 推荐(0)
 
 
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3