- 博客(8)
- 收藏
- 关注
原创 .NET c#源码
https://referencesource.microsoft.com/#mscorlib/system/collections/generic/dictionary.cs
2021-07-02 17:46:33
114
原创 Rect.OverLaps() 改进
解决 scale、pivot 改变后 检测不准确问题 using UnityEngine; public static class ExpTool { static Rect rect = new Rect(); static float x, y, width, height; static Vector2 center; public static Rect GetRect(this RectTransform self, float offsetScale
2021-06-23 15:13:49
638
原创 unity 编辑器下 批量设置ab 与 图片设置图集packing tag
using UnityEngine; using UnityEditor; public class Tools : Editor { [MenuItem("Tools/SetAB_Tag")] static void SetABAndTag() { string assetPath = "Assets/ab"; string[] uids = AssetDatabase.FindAssets("t:Prefab t:Texture", new ...
2020-06-29 17:07:16
798
原创 'xxx' script. Some are Mac OS X (UNIX) and some are Window解决方案
在asset目录下创建文本,命名为 mcs.rsp 写入 -unsafe 保存重开即可
2019-02-25 17:07:20
2567
1
原创 unity 截图
using System.Collections; using UnityEngine; using System.IO; using UnityEngine.Networking; public class ScreenShotTest : MonoBehaviour { private string path = string.Empty; void Star...
2019-02-15 11:24:50
191
转载 Unity 简单封装UnityWebRequest
转自 https://www.jianshu.com/p/3da9191f82a0 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Networking; public class C_UnityWebRequest ...
2019-02-14 16:29:39
837
2
原创 unity中 判断目标在自身的方位
1.在自身的前后: Vector3.Dot (transform.forward, target.position-transform.position) 返回值为正时,目标在自己的前方,反之在后方2.在自身的左右: Vector3.Dot(transform.right, target.position-transform.position) 返回值为正时,目标在自己...
2018-02-24 15:26:32
3528
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人