自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (1)
  • 收藏
  • 关注

原创 随机序列号生成的方式

随机序列号生成的方式方式一:利用System空间中的Guid。 long GenerateIntID() { byte[] buffer = Guid.NewGuid().ToByteArray(); return BitConverter.ToInt64(buffer, 0); }方式二:使用随机函数控制生成,如果想要控制生成的字符或者长度,可以从这里入手 long GenerateIntID2() {

2020-08-28 21:21:05 1053

原创 通过linq选择对象时的几种区别

如果需要过滤数组,就使用Where,用Select和SelectMany主要目的是对选择进行转换。1、Where:测试代码: void TestWhere() { string[] text = { "Albert was here", "Burke slept late", "Connor is happy", "Burning" }; var tokens = text.Where(s => { return s.StartsW...

2020-06-15 15:14:06 137

原创 向量垂线计算

    暂时不明白原理,但验证是可用的。unity中的代码如下 Vector2 dir = (Vector2)Input.mousePosition - _lastTouchPos; Vector2 verticalDirection = new Vector2(dir.y,-dir.x);...

2018-05-30 11:50:27 3837

原创 Unity-Animator-学习点滴

AnimatorStateInfo stateInfo; 如果重复播放动画 stateInfo.normalizedTime会从0无限累加, 如果单次播放,再从其他状态切换会此状态,stateInfo.normalizedTime从零开始重新计算.

2016-02-26 15:22:43 305

Odin - Inspector and SerializerV2.0.2.0.unitypackage

Odin puts your Unity workflow on steroids, making it easy to build powerful and advanced user-friendly editors for you and your entire team. With an effortless integration that deploys perfectly into pre-existing workflows, Odin allows you to serialize anything and enjoy Unity with 80+ new inspector attributes, no boilerplate code and so much more! 仅供学习和交流,不可以商用。

2019-06-04

空空如也

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

TA关注的人

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