当前位置:网站首页>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

边栏推荐
- A must see cruise experience in Bangkok: visit the Mekong River and enjoy the scenery on both sides of the river
- Universal Studios Singapore: a good place for a one-day parent-child tour in Singapore
- 力扣349. 两个数组的交集
- SCM learning notes: interrupt learning
- Is the Flink connector JDBC open source? Where can I download it
- Have a heart beating Valentine's day in Singapore
- Singapore parent-child tour, these popular attractions must be arranged
- Unity realizes rotation and Revolution
- Singleton mode in unity
- Operation file file class method
猜你喜欢

Force buckle 59 Spiral matrix II

Unreal 4 learning notes - data storage using blueprints

Unity Logitech steering wheel access

Detailed explanation of the process of "flyingbird" small game (camera adjustment and following part)

What is multimodal interaction?

harbor api 2.0查询

深度学习------不同方法实现Inception-10

Arsenal Stadium Tour - take you to the front and back of Arsenal Stadium

Force buckle 209 Minimum length subarray

Universal Studios Singapore: a good place for a one-day parent-child tour in Singapore
随机推荐
Collective system
One command to run rancher
Unity3d packaging and publishing APK process
Unity3d Google Earth
UE4 method of embedding web pages
Chapter 10 of OpenGL super classic (7th Edition) calculation shader
Unity automatic pathfinding
A must see cruise experience in Bangkok: visit the Mekong River and enjoy the scenery on both sides of the river
JPA composite primary key usage
Unity script life cycle and execution sequence
Unity multiple UI page turning left and right
力扣27. 移除元素
Unity packaging failure solution
PWN入门(2)栈溢出基础
力扣2049:统计最高分的节点数目
Moore Manor diary I: realize the reclamation, sowing, watering and harvest in Moore Manor
Autowired注解警告的解决办法
ParticleSystem in the official Manual of unity_ Collision module
On mask culling of unity
How does unity use mapbox to implement real maps in games?