当前位置:网站首页>Records of some problems encountered during unity development (continuously updated)
Records of some problems encountered during unity development (continuously updated)
2022-06-30 05:02:00 【StudyHard_ luozhongxu】
1.Unity Report errors Invalid normalized color
Compile without error , The above error will be reported when the interface is opened . This is because Color In the construction method r,g,b,a The value range of is 0 To 1. and Color32 The value range of the construction method is 0 To 255.
2.Unity Report errors Request error (error): UnityEditor.AsyncHTTPClient:Done(State, Int32)
The solution is as follows :
Edit——Preference——General——Show Asset Store search hits( Show asset store search results )( Uncheck the )

3.Unity2017 Release program log file
Unity2017 Publishing program logs is no longer at the same level of the program Data It is written on the hard disk of the computer “C:\Users( user )\ user name \AppData\LocalLow\ Company name in publishing settings \ The name of the work in the release settings ” In the catalog output_log.txt file
4.unity Store download file save path :
Windows System :C:\Users\ System user name \AppData\Roaming\Unity\Asset Store
MAC:"~/Library/Unity/Asset\ Store"
5. Read new xml The document is garbled in Chinese
Create a new text file locally , Change the suffix to ".XML”, And enter xml Format the content and save it . The file header has a definition “<?xml version="1.0" encoding="utf-8" ?>” But then read xml The reason why Chinese garbled code still appears in the document content : When using Notepad to save the document , No encoding format selected , The operating system code is used by default ( Chinese version of the system ), Which is the corresponding "GB2312” code . Just open it with Notepad xml Select Save as after file , And specify the format as utf-8 Problem solvable .
6.unity ContentSizeFitter The refresh is not timely
ContentSizeFitter, The adaptive width and height script will not adapt to the width and height until the next frame . If you want to take effect immediately , You can call
LayoutRebuilder.ForceRebuildLayoutImmediate(rectTransform);
7. The material display is abnormal
1. stay Unity Normal is displayed in , Show exceptions in published programs
2. stay Unity And in the publisher , But in Unity Reselect the material in or in Hierarchy It can be displayed normally after switching and selecting objects in
resolvent : First check Project Setting->Graphics->Built-in Shader Settings->Always Included Shaders Whether the list contains abnormal display shader, If not, add it and then release the test , If it is included, specify again by code shader test , If not yet , Then create a new material through the code, copy the corresponding material properties, and re assign the display object .
边栏推荐
- 【 VCS + Verdi joint simulation】 ~ Taking Counter as an Example
- 力扣2049:统计最高分的节点数目
- Check London attractions suitable for parents and children in winter vacation
- Procedural animation -- inverse kinematics of tentacles
- Singapore parent-child tour, these popular attractions must be arranged
- 力扣977. 有序数组的平方
- Chapter 8 primitive processing of OpenGL super classic (version 7)
- Important knowledge points in unity3d
- Some problems encountered in unity steamvr
- Under what conditions does the Z-index attribute expire?
猜你喜欢

MySQL query gadget (I) replace a property value of the object in the JSON array in the JSON format string field

Winter vacation parent-child tour, these new york attractions are not only fun but also knowledge

Li Kou 2049: count the number of nodes with the highest score

One command to run rancher

Unity3d lookat parameter description

Force buckle 209 Minimum length subarray

Collective system

力扣209. 长度最小的子数组

Unity packaging failure solution

Preorder traversal of Li Kou 589:n fork tree
随机推荐
JPA composite primary key usage
z-index属性在什么情况下会失效?
Unity lens making
Output directory of log files after unity3d packaging
Photon pun refresh hall room list
Passing values between classes using delegates and events
Redis cluster concept
Moore Manor diary I: realize the reclamation, sowing, watering and harvest in Moore Manor
redis集群概念
Force buckle 27 Removing Elements
What is multimodal interaction?
Modbus protocol register
Force buckle 209 Minimum length subarray
Universal Studios Singapore: a good place for a one-day parent-child tour in Singapore
Chapter 12 pipeline monitoring of OpenGL super classic (version 7)
Oracle-数据的基本操作
Meet in Bangkok for a romantic trip on Valentine's Day
力扣704. 二分查找
Generate a slice of mesh Foundation
Why does the computer have no network after win10 is turned on?