当前位置:网站首页>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 .
边栏推荐
- Harbor API 2.0 query
- Important knowledge points in unity3d
- Chapter 8 primitive processing of OpenGL super classic (version 7)
- Error about the new version of UE4: unavigationsystemv1:: simplemovetoactor has been deprecated
- PWN入门(2)栈溢出基础
- JPA composite primary key usage
- SCM learning notes: interrupt learning
- LxC and LXD container summary
- Four methods of unity ugui button binding events
- Unity script life cycle and execution sequence
猜你喜欢

Unity script life cycle and execution sequence

【VCS+Verdi联合仿真】~ 以计数器为例

MySQL查询小工具(一)json格式的字符串字段中,替换json数组中对象的某个属性值

On mask culling of unity

Marvel fan welfare: Singapore Madame Tussauds Wax Museum Marvel 4D experience Museum

Using the command line to convert JSON to dart file in fluent

Harbor API 2.0 query

QT connecting external libraries

Solution to Autowired annotation warning

Ripple effect of mouse click (unity & shader)
随机推荐
QT connecting external libraries
Redis cluster concept
How to install win7 on AMD Ruilong CPU A320 series motherboard
力扣27. 移除元素
Have a heart beating Valentine's day in Singapore
Under what conditions does the Z-index attribute expire?
Chapter 7 vertex processing and drawing commands of OpenGL super classic (7th Edition)
Procedural animation -- inverse kinematics of tentacles
Autowired注解警告的解决办法
Create transfer generation point
Easyrecovery data recovery software recovers my photo and video data two years ago
Chapter 10 of OpenGL super classic (7th Edition) calculation shader
003-JS-DOM-Attr-innerText
On mask culling of unity
Deeply understand the function calling process of C language
一条命令运行rancher
Force buckle 59 Spiral matrix II
Using the command line to convert JSON to dart file in fluent
Generate a slice of mesh Foundation
A collection of errors encountered in machine learning with unity