Fivee

导航

2022年6月15日 #

UE IOS 点击响应问题

摘要: 解决的主要是IOS12以上的设备, 在键盘隐藏后, 点击依然被吞的问题. 主要参考 IOS的responder问题。 在IOSView中, DeactiveKeyboard的时候, 需要ResignResponder。 // return nil之后, view持有的 CachedMarkedTex 阅读全文

posted @ 2022-06-15 11:54 Fivee 阅读(47) 评论(0) 推荐(0) 编辑

2021年9月8日 #

UE4的一些小tricks

摘要: 1. 打开GridBox 修改 SlateCoreClasses::GSlateHitTestGridDebugging 2. 扩大按钮响应区域 修改 HittestGrid::GetHitIndexFromCellIndex 将WindowOrientedClipRect 改为从SWidget上获 阅读全文

posted @ 2021-09-08 11:03 Fivee 阅读(77) 评论(0) 推荐(0) 编辑

2021年8月2日 #

UE4 安卓相关

摘要: 1, 键盘弹起收回事件 /** Delegate for virtual keyboard being shown/hidden in case UI wants to slide out of the way */ GenericApplication::OnVirtualKeyboardShow 阅读全文

posted @ 2021-08-02 17:47 Fivee 阅读(300) 评论(0) 推荐(0) 编辑

2021年5月28日 #

UMG ScrollBox OverScroll

摘要: 如果希望在列表未填充满时,也可以产生拖拽的感觉, 需要修改一下源码 void SScrollBox::Tick( const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime ) { .. 阅读全文

posted @ 2021-05-28 16:47 Fivee 阅读(103) 评论(0) 推荐(0) 编辑

2021年5月18日 #

UMG ScrollBox InsertChild

摘要: 参照 SScrollBoxSlot中的AddSlot方法, 增加一个新的Insert函数即可 /** Adds a slot to SScrollBox */ SScrollBox::FSlot& SScrollBox::AddSlot() { SScrollBox::FSlot& NewSlot 阅读全文

posted @ 2021-05-18 15:22 Fivee 阅读(71) 评论(0) 推荐(0) 编辑

2021年5月11日 #

UMG ScrollBox Reverse

摘要: 在ScrollBox 对应的panel中, 修改 OnArrangeChildren 方法, 开放一个参数给界面配置 void SScrollPanelExt::OnArrangeChildren(const FGeometry& AllottedGeometry, FArrangedChildre 阅读全文

posted @ 2021-05-11 17:59 Fivee 阅读(63) 评论(0) 推荐(0) 编辑

2021年2月20日 #

Unity Foreach GC问题

摘要: 原文地址: Foreach实现原理及性能分析 简单总结一番,在Unity老版本中,产生GC的原因是。Foreach语法糖,类似一个using(resource),在编译的时候会产生 finally { ((IDisposable)m2).Dispose(); // 装箱 } 这样的代码。就这么简单 阅读全文

posted @ 2021-02-20 11:30 Fivee 阅读(252) 评论(0) 推荐(0) 编辑

2021年1月19日 #

adb调试备忘

摘要: Unity安卓应用闪退-使用DDMS工具查看安卓日志/ADB真机调试 Linux操作指令 查看当前所有进程: ps 查看当前句柄总数:adb shell lsof -p <pid> |wc –l 查看当前句柄详情:adb shell lsof -p <pid> Debug新思路 阅读全文

posted @ 2021-01-19 16:38 Fivee 阅读(82) 评论(0) 推荐(0) 编辑

弱网调试工具备忘

摘要: 延迟模拟工具 Clumsy PC网络查看工具 TcpView 阅读全文

posted @ 2021-01-19 11:52 Fivee 阅读(71) 评论(0) 推荐(0) 编辑

2020年11月17日 #

MethodInfo.Invoke()

摘要: 反射调用时,必须传递所有参数, 无论是否有默认参数。 public class InvokeTarget { public static void Invoke1(int a) { } public static void Invoke2(Action<int> a, int b = 0) { } 阅读全文

posted @ 2020-11-17 15:49 Fivee 阅读(923) 评论(0) 推荐(0) 编辑