摘要: string chineseChar = "破"; byte[] utf8Bytes = Encoding.UTF8.GetBytes(chineseChar); string urlEncoded = string.Join("%", utf8Bytes.Select(b => b.ToStrin 阅读全文
posted @ 2025-01-02 18:23 减肥的程序 阅读(17) 评论(0) 推荐(0)
摘要: 底层算法 public static Vector2 WorldToUGUIPosition(Canvas canvas, Camera worldCamera, Vector3 worldPosition) { // 将世界坐标转换为屏幕坐标 var screenPosition = worldC 阅读全文
posted @ 2024-11-12 11:09 减肥的程序 阅读(306) 评论(0) 推荐(0)
摘要: public void Refresh() { if (!renderImage || !renderCamera) return; var rect = renderImage.rectTransform.rect; var w = (int)rect.width; var h = (int)re 阅读全文
posted @ 2024-10-12 10:35 减肥的程序 阅读(77) 评论(0) 推荐(0)
摘要: var string = <link=url><u><#0076FF>open url</u></color></link> text里面设置这个字符串 public void OnPointerClick(PointerEventData eventData) { int linkIndex = 阅读全文
posted @ 2024-07-24 14:02 减肥的程序 阅读(368) 评论(0) 推荐(0)
摘要: using UFramework.Runtime; using UnityEngine; using UnityEngine.UI; namespace GameMain { public class PowerTest : BehaviourBase { float e = 0; [Seriali 阅读全文
posted @ 2024-06-29 11:30 减肥的程序 阅读(78) 评论(0) 推荐(0)
摘要: IEnumerator Start() { Debug.Log("协程开始"); yield return new WaitForSeconds(2f); Debug.Log("等待了2秒后继续执行"); yield return new WaitForSeconds(1f); Debug.Log( 阅读全文
posted @ 2024-06-07 17:11 减肥的程序 阅读(13) 评论(0) 推荐(0)
摘要: public class PlayerTouch : BehaviourBase, IDragHandler, IBeginDragHandler, IEndDragHandler { public void OnBeginDrag(PointerEventData data) { } public 阅读全文
posted @ 2024-05-29 20:39 减肥的程序 阅读(32) 评论(0) 推荐(0)
摘要: { "dependencies": { "com.taptap.tds.login":"3.27.0", "com.taptap.tds.bootstrap":"3.27.0", "com.taptap.tds.common":"3.27.0" } "scopedRegistries": [ { " 阅读全文
posted @ 2024-02-01 16:09 减肥的程序 阅读(122) 评论(0) 推荐(0)
摘要: 裁剪算法 public const float phone_Head_Width = 500; public const float phone_Head_Height = 500; public const float phone_Bg_Width = 1000; public const flo 阅读全文
posted @ 2024-01-26 16:22 减肥的程序 阅读(220) 评论(0) 推荐(0)
摘要: 释放 Dispose() Json 传服务器 阅读全文
posted @ 2024-01-17 16:07 减肥的程序 阅读(10) 评论(0) 推荐(0)