11 2024 档案

摘要:public class EditorClipDemoWnd : EditorWindow { [MenuItem("Demos/EditorClipDemoWnd")] static void ShowWindow() { var window = GetWindow<EditorClipDemo 阅读全文
posted @ 2024-11-09 00:02 yanghui01 阅读(101) 评论(0) 推荐(1)
摘要:1) 16进制字符串 a) c#内置api byte[] bytes = BitConverter.GetBytes(123); var hexStr = BitConverter.ToString(bytes); b) 实现1 ///返回低字节顺序十六进制字符串(低字节在左侧) public st 阅读全文
posted @ 2024-11-08 22:41 yanghui01 阅读(259) 评论(0) 推荐(0)
摘要:1) 取余 math.fmod math.fmod(-5, 3) = -2 原理: 先做除法:-5 / 3 = -1.6666667,按靠0原则去掉小数,即:-1 -5 - (3 * -1) = -2 2) 取模 % -5 % 3 = 1 原理: 先做除法:-5 / 3 = -1.6666667,按 阅读全文
posted @ 2024-11-08 22:22 yanghui01 阅读(631) 评论(0) 推荐(0)