随笔分类 - 程序开发
摘要:```C# using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(SpriteRenderer))] public class SpriteFul
阅读全文
摘要:.netframework的Bitmap类返回的pixel中[alpha的值恒为255]( https://bytes.com/topic/net/answers/752980-how-do-i-get-bitmap-getpixel-not-return-alpha-value),因此需要自己读取
阅读全文
摘要:https://blog.csdn.net/Cy_coding/article/details/111048077 unity中我们普遍使用的是碰撞器来实现各个物体的碰撞体积,例如Box collider, Sphere Collider。 在实现游戏的过程中,如果不想要物体与特定物体产生碰撞,或反
阅读全文
摘要:https://gwb.tencent.com/community/detail/109177 FPS游戏服务器设计的问题 转 3.3k浏览 一、追溯 去gameloft笔试,有一个题目是说: 叫你去设计一个FPS(第一人称射击游戏),你是要用TCP呢还是要用UDP,说明理由 。二、学习 这是两篇网
阅读全文
摘要:不知道“增益道具”在英文里该怎么说,百度翻译是GainProp,感觉怪怪的。于是用ChatGPT问了一下。 我: >in a game, something that can buff the player, what is it GPT: >In a game, a "buff" typicall
阅读全文
摘要:### 动机 由于地图是使用unity tilemap编辑的,服务端也希望获取一份相关的信息。**相较于自己写个编辑器,直接利用unity的能力会更加敏捷**。 ### 效果展示 只需要将组件拖拽到含有Tilemap组件的GameObj上面,就可以点击按钮,获取格子信息。 ](https://learn.microsoft.com/en-us/dotnet/standard/io/memory-mapped-files)是一种很好的进程间通信方式,它暴露了底层的细节,具有很强的扩展性以及性能。  ```C# using System.Collections; using Syste
阅读全文
摘要:### 起因 C#函数中没有显示native线程id的,只能显示managedThreadId,如果想显示nativeThreadId就需要通过[PInvoke](https://learn.microsoft.com/zh-cn/dotnet/standard/native-interop/pin
阅读全文
摘要:https://github.com/dotnet/sdk/issues/16975 >6bee commented on Apr 1 > adding the following PropertyGroup to the .pubxml seems to have solved the issue
阅读全文
摘要:```C# public static bool TryGetLocalEndPoint(out IPEndPoint ipEndPoint) { try { string localIP = string.Empty; using (Socket socket = new Socket(Addre
阅读全文
摘要:转发自 https://www.cnblogs.com/walterlv/p/10236378.html `CommandLineParser` 是一款用于解析命令行参数的 NuGet 包。你只需要关注你的业务,而命令行解析只需要极少量的配置代码。 本文将介绍如何使用 `CommandLinePar
阅读全文
摘要:https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-build >-v|--verbosity >Sets the verbosity level of the command. Allowed values are q[uiet],
阅读全文
摘要:### 问题 对于泛型类`List`,如果调用`type.FullName`和`type.Name`会分别返回下面的内容。 ```C# //type.FullName System.Collections.Generic.List`1[[System.Int32, mscorlib, Version
阅读全文
摘要:[toc] 源视频教程地址为[Youtube](https://www.youtube.com/watch?v=pZ45O2hg_30) ### 什么是Unity工具开发程序员 工具开发程序员目标客户是项目组里其他成员,它们创造出unity原本没有的功能,优化项目的流程。并且你只需要会C#就能搞定这
阅读全文
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(SpriteRenderer))] public class SpriteAnimator
阅读全文
摘要:unity中最小的网格就是1unit。1unit默认是1米。 1 Unity unit = 1 meter (100cm) 对于一个16*16像素的图片,如果我们将其Pixels Per Unit设置为16,那么这张图片的长宽都是1unit。在unity中刚好契合最小的格子。
阅读全文

浙公网安备 33010602011771号