当前位置:网站首页>Records of problems encountered in unity + hololens development
Records of problems encountered in unity + hololens development
2022-06-30 05:03:00 【StudyHard_ luozhongxu】
1.HoloLens Device camera description
The middle camera is for imaging 、 A camera for capturing pictures and recognizing gestures ; The cameras on both sides are space recognition cameras , Identify spatial location and environment .
2. stay Hololens In the development TCP signal communication , There is an error “ArgumentException: Value does not fall within the expected range” Solutions for
open Unity Under the installation folder …\Editor\Data\il2cpp\libil2cpp\os\Win32 file found SocketImpl.cpp, Delete the preceding annotation in the following code block - Yes, it is :
case kSocketOptionLevelIP:
-#ifdef SOL_IP
- *system_level = SOL_IP;
-#else
*system_level = IPPROTO_IP;
-#endif
#if IL2CPP_SUPPORT_IPV6
case kSocketOptionLevelIPv6:
- #ifdef SOL_IPV6
- *system_level = SOL_IPV6;
- #else
*system_level = IPPROTO_IPV6;
- #endif
3.Hololens Medium model or UI Monocular display problem
1. Use MRTK The built-in shader(MixedRealityToolkit Next );
2. If not used MRTK Medium shader, Modify the currently used shader:
(1) stay struct appdata Add
UNITY_VERTEX_INPUT_INSTANCE_ID
(2) stay struct v2f Add
UNITY_VERTEX_INPUT_INSTANCE_ID
UNITY_VERTEX_OUTPUT_STEREO
(3) stay v2f vert (appdata_t v) Add
UNITY_SETUP_INSTANCE_ID(v);
UNITY_TRANSFER_INSTANCE_ID(v, o);
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
(4) stay fixed4 frag (v2f i) : *** Add
UNITY_SETUP_INSTANCE_ID(i);
4. adopt Type-C Line connection computer deployment application failed
(1). Make sure that the device is in the power on but not sleep state ( The power light is on ), Settings options on your computer and device " Developer model " It's on , Restart and try again
(2). Determine whether an application with the same signature has been installed on the lower device , If yes, uninstall first , Try again
(3). restart HoloLens equipment , Try again
(4). Change USB Slot try , Change one Type-C Try the line
(5). Confirm the next installation vs Check whether or not USB connectivity , Restart after installation vs, Try again

(6). Pairing is required for the first deployment (VS When the pairing prompt appears , Input the deployment HoloLens Device pairing code , Pairing codes can be found in HoloLens Device settings --> Developer options --> View in pairing )
If the order is down or not , Can pass Wireless remote deployment :
(1) Make sure that the device is in the power on but not sleep state ( The power light is on ), Settings options on your computer and device " Developer model " It's on
(2) Make sure PC and HoloLens In the same segment
(3)vs Select in turn Release、ARM64、 Remote computer 
(4)vs Select debug in turn -->** Debug properties --> debugging , Then enter deployment... In the computer name field HoloLens equipment ip, Then click OK

(5) Click the button below to deploy , Pairing is required for the first deployment (VS When the pairing prompt appears , Input the deployment HoloLens Device pairing code , Pairing codes can be found in HoloLens Device settings --> Developer options --> View in pairing ), After pairing, wait for deployment to complete .

5. Modify the icon in the publishing settings and publish to HoloLens There is no change problem in
change Player Setting Software icon in 、 After the software opens the picture displayed in the pop-up window , You cannot overwrite a previously packaged VS Project release , Otherwise, the modification will not be applied , The packaged project shall be deleted and republished , Or release new projects .
6.HoloLens2+vuforia The screen jitter turns off VuforiaConfiguration --> Track Device Pose

7.unity Lightmaps baked in cannot be used in HoloLens It shows that
1. modify Project Setting->Graphics->Shader Stripping->Lightmap Modes Of Automatic by Custom, namely Lightmap mode from Automatically Change it to Customize To force the lightmap on
2. take MRTK Standard shaders (Shader) Add files to Project Setting->Graphics->Built-in Shader Settings->Always Included Shaders In the list , This will ensure that MRTK All compilation of shaders is included in your project .

8.HoloLens Open in ar(vuforia) The screen projection and other transmission pictures will be interrupted in an instant , However, the reconnection can be carried out normally ar Scanning recognition
9.HoloLens in UGUI Of Mask Component failure
because Depth Format choice 16-bit depth Lead to , There are two solutions :
(1) modify 16-bit depth by 24-bit depth
(2) perhaps Mask Replace the component with Rect Mask 2D

10.HoloLens in UGUI Of InputField You can only enter but not delete
resolvent :InputField Replace the component with MRTKUGUIInputField+UI_KeyboardInputField

边栏推荐
- How does unity use mapbox to implement real maps in games?
- Postman 做测试的 6 个常见问题
- Unreal 4 learning notes - set player birth point
- National Museum of Singapore - give you spiritual and physical satisfaction
- Autowired注解警告的解决办法
- OpenGL draws model on QT platform to solve the problem of initializing VAO and VBO
- Generate a slice of mesh Foundation
- redis集群概念
- Arsenal Stadium Tour - take you to the front and back of Arsenal Stadium
- Why does the computer have no network after win10 is turned on?
猜你喜欢

力扣59. 螺旋矩阵 II

Force buckle 704 Binary search

Moore Manor diary I: realize the reclamation, sowing, watering and harvest in Moore Manor

力扣704. 二分查找

Create a simple battle game with photon pun

Royal Albert Hall, a popular landmark in London

HTC vive cosmos development - handle button event

Deeply understand the function calling process of C language

Pit of smoothstep node in shadergraph

redis集群概念
随机推荐
Oracle-数据的基本操作
【 VCS + Verdi joint simulation】 ~ Taking Counter as an Example
Pit of smoothstep node in shadergraph
Unity supports the platform # define instruction of script
Create a simple battle game with photon pun
Some books you should not miss when you are new to the workplace
Modbus protocol register
Unity3d realizes Google Digital Earth
QT connecting external libraries
Yolov5 torch installation
Unreal 4 learning notes - Animated Montage
Spring Festival Tourism Strategy: welcome the new year in Bangkok, Thailand
Solution to the 292 week match of Li Kou
Deep learning ----- different methods to realize inception-10
Four methods of unity ugui button binding events
【VCS+Verdi聯合仿真】~ 以計數器為例
Pycharm database tool
How to install win7 on AMD Ruilong CPU A320 series motherboard
LXC 和 LXD 容器总结
PBR material: basic principle and simple fabrication