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

2020年7月7日

【Unity】不用设置父子关系,使用Constraint组件约束物体
摘要: Constraint组件可以约束物体,链接本物体与目标物体的Transform,跟随目标物体的位置、旋转、缩放,实现父子物体一样的效果,却不用设置父子关系。而且一个物体可以同时关联多个目标物体,设置不同的权重 官方文档:https://docs.unity3d... 阅读全文
posted @ 2020-07-07 15:14 萧然CS 阅读(613) 评论(0) 推荐(0)
 
 

2020年6月29日

【Unity】利用协程实现非Mono类延迟调用方法
摘要: 1. 利用协程可以实现方法延时调用 2. 继承CustomYieldInstruction类,可以自定义yield指令 using System.Collections;using System.Collections.Generic;using UnityE... 阅读全文
posted @ 2020-06-29 11:58 萧然CS 阅读(430) 评论(0) 推荐(0)
 
 

2020年6月20日

【C#】【温故知新】委托与接口中泛型的协变与逆变
摘要: public class Test : MonoBehaviour{ //协变,out修饰返回值 public delegate T Function(); //逆变,in修饰传入参数 public delegate void Acti... 阅读全文
posted @ 2020-06-20 23:48 萧然CS 阅读(38) 评论(0) 推荐(0)
 
【C#】【温故知新】类型转换之拆箱/装箱(boxing/unboxing),溢出检测checked/unchecked,自定义转换implicit/explicit
摘要: 装箱boxing: 是值类型到引用类型的隐式转换,根据值类型的值,在堆上创建一个完整的引用类型对象,并返回对象的引用。 int i = 1; //值类型 object o = i; //引用类型,在堆上创建int... 阅读全文
posted @ 2020-06-20 22:03 萧然CS 阅读(47) 评论(0) 推荐(0)
 
【C#】【温故知新】多维数组之矩形数组与交错数组
摘要: 数组分为一维数组与多维数组,多维数组又分为矩形数组与交错数组。 矩形数组: 某个维度的所有子数组长度相同。(与矩阵类似) int[,,] array1 = new int[2, 3, 2]; int[,,] array2 = new int... 阅读全文
posted @ 2020-06-20 17:32 萧然CS 阅读(72) 评论(0) 推荐(0)
 
 

2020年6月19日

【Unity】Editor下批量修改UI Prefab字体
摘要: 一般情况UI界面都是动态加载到场景,一键对UI Prefab批量修改字体,如果要修改字号、字体格式或者对齐方式等Text组件的其他操作,可以根据需求继续扩展。 操作一: 在面板中选中需要修改Text组件的预设体,打开"MyTools/Change Font"工... 阅读全文
posted @ 2020-06-19 16:54 萧然CS 阅读(659) 评论(0) 推荐(0)
 
 

2020年6月18日

【问题记录】Unity莫名其妙的几百个报错,原来是许可证过期了
摘要: 报错: Assertion failed on expression: 'm_ErrorCode == MDB_MAP_RESIZED || !HasAbortingErrors()' Asset database transaction committed... 阅读全文
posted @ 2020-06-18 18:48 萧然CS 阅读(1178) 评论(0) 推荐(0)
 
 

2020年6月15日

【问题记录】【Unity打包Android】Android NDK not found / NDK 16 detected. Unity requires NDK r19(64-bit)
摘要: NDK配置报错: Edit -> Preferences -> External Tool -> Android NDK 不支持原有版本:android-ndk-r16b,需要r19才行 NDK 16.1.4479499 detected. Unity req... 阅读全文
posted @ 2020-06-15 16:18 萧然CS 阅读(637) 评论(0) 推荐(0)
 
【问题记录】【Unity打包Android】ArgumentNullException: Value cannot be null. Parameter name: path1
摘要: Unity版本:2019.3.15 报错: ArgumentNullException: Value cannot be null. Parameter name: path1 System.IO.Path.Combine (System.String pat... 阅读全文
posted @ 2020-06-15 15:59 萧然CS 阅读(883) 评论(0) 推荐(0)
 
 

2020年6月11日

【问题记录】【Unity打包iOS】bitcode bundle could not be generated because xxx was built without full bitcode
摘要: 报错: 打包Archive的时候报错: ld: warning: arm64 function not 4-byte aligned: _unwind_tester from /Users/xxx/xxx/xxx/Libraries/libiPhone-lib... 阅读全文
posted @ 2020-06-11 15:00 萧然CS 阅读(327) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页

公告


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