如何通过USB3线缆连接hololens2调试UNITY项目
通过USB3线缆调试hololens2有许多好处,例如数据传输快、调试稳定、不容易受wifi网络波动的影响等等。
调试的方法也很简单,首先看下面这篇文章,方法相同,其实就是更换一下调试的计算机名称
UNITY开发好的hololens程序如何部署到hololens2上 – 工设里世界
然后将hololens2插入USB3.0标准以上的线缆,不要使用USB2线缆。(USB3.2也可以,3.1也可以,USB4也可以,我用的是usb3.2 20g的C2C线,总之是要高于3.0才行。)
点击设备,往下拉,如果hololens2正确连接了设备,那是可以看到这个设备名称的。
unity报错Certificate Assets\WSATestCertificate.pfx is expired and cannot be used for a UWP build
unity打包报错,目标文件夹是空的,报错代码如下:
InvalidOperationException: Certificate Assets\WSATestCertificate.pfx is expired and cannot be used for a UWP build. To fix this, either delete it or select a different certificate in the player settings.
PostProcessWinRT.CreateTestCertificate () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:1078)
PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:168)
UnityEditor.UWP.BuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:86)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
分析以后应该是这个项目的WSA证书过期了。解决办法:
hololens2实现5G模块有线连接
众所周知原版hololens是没有5G模块的,它使用的芯片是高通骁龙850,高通骁龙850实际上是不具备5G基带的,当年也需要外挂X50基带才可以实现5G,更别说hololens2设计的时候可能原生就没有5G基带。后面有说要推出5G版本hololens,但最后还是鸽没了。
所以Hololens2如果想要实现户外功能就必须要自己加装5G模块,
于是博主斥巨资购入ZTE中兴 F50 5G上网模块(399元),这个好处是可以插入自己的5G SIM卡,切换自由。这款5G module的USB接口是typec usb3.0的,配合USB3.0+的数据线可以实现3750mb/s的数据传输,也就是3.7G左右的接口传输速率。
【基于unreal engine 4蓝图】HOLOLENS 2 多QRCODE二维码识别blueprint实现
Hololens2+unity实现QRCODE二维码识别
UE4 HOLOLENS2 mixed reality capture unreal无法实现摄像头捕捉只显示绿色泡泡的问题
hololens2开发中一个问题:
如果你按照微软官方的实例,每一步都正确执行,严格遵守HOLOLENS2教程中的 Unreal 进行混合现实捕获(mixed-reality-capture-unreal)这一章节,会和我一样百思不得其解,为什么我的平面上面只有一个丑陋的绿色泡泡图案而没有摄像头的捕捉画面。
UE4和UE5中get gaze date没有输出节点的问题
在UE教程中,get gaze date节点中可以得到5个输出节点:
Out Gaze Data Gaze Origin
Out Gaze Data Gaze Direction
Out Gaze Data Fixation Point
Out Gaze Data Confidence Value
Return Value
但是在4.27和UE5中,get gaze date节点只有out gaze date 眼部追踪器凝视数据结构一个输出。实际上这是一个复合数据,有两种办法得到这5个输出节点。
首先第一种方法是直接在out gaze date输出节点上右键,点击分割结构体引脚,就可以得到上述五个输出节点的样子
第二种方法是从out gaze date上引出一个break节点,得到一个中断EyeTrackerGazeData节点,就可以把结构化的数据输出分成上述四个节点。
顺便吐槽一下,中文的UE4把这个翻译成了中断……其实个人理解意思是打开打散数据结构……
UE4蓝图运行时错误:"“无访问”正在尝试读取属性 Kinght"。 节点: Resetgame 图表: EventGraph 函数: Execute Ubergraph Reset Button 蓝图: ResetButton
The 'UXTools' plugin was designed for build 5.0.3. Attempt to load it anyway?打包失败
我们来谈谈微软的大坑:当打开hololens项目文件的时候,报错:
The 'UXTools' plugin was designed for build 5.0.3. Attempt to load it anyway?
'GraphicsToolsExamples' is Incompatible
The 'GraphicsToolsExamples' plugin was designed for build 5.0.3. Attempt to load it anyway?
但是不影响项目运行,可是打包的时候会报错:
UATHelper: 打包 (HoloLens): LogBlueprint: Error: [AssetLog] E:\UEPJSPEED\DELTEST0308\Content\config1\MRPAWNnew.uasset: [Compiler] 生成节点 生成Actor NONE 必须指定一个 Class 。 from Source: /Game/config1/MRPAWNnew.MRPAWNnew
UATHelper: 打包 (HoloLens): LogBlueprint: Error: [AssetLog] E:\UEPJSPEED\DELTEST0308\Content\config1\MRPAWNnew.uasset: [Compiler] 生成节点 生成Actor NONE 必须指定一个 Class 。 from Source: /Game/config1/MRPAWNnew.MRPAWNnew