In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to eliminate the unwanted yellow warning in Unity game development, which has a certain reference value, and interested friends can refer to it. I hope you will gain a lot after reading this article.
0. Preface
There are often a bunch of yellow warnings when we use plug-ins, mostly because of warnings that a future version of API will be replaced, which makes students with obsessive-compulsive disorder or cleanliness addicts scalp numb.
1. Eliminate warnings from the corresponding code
After looking up some information on the Internet, I feel that there are some methods that are simple and rude, but there are all kinds of hidden dangers, such as filtering out the warnings in the code I wrote.
Finally, I am more inclined to use the following method:
Write # pragma warning disable 0618 in front of the code to be closed
Write # pragma warning able 0618 on the line below the line to be closed
The advantage of this is that it accurately closes the code warnings caused by the specified place and does not filter out innocent code.
The "0618" is the number in waring cs0618 in Unity, and each warning corresponds to a different number.
And then I found out that some code snippets cause more than one warning, which is a number where we can write all the warnings at the same time.
In this way, all warnings corresponding to the numbers will be eliminated.
two。 Eliminate all warnings for the corresponding type
This method is violent and is not highly recommended, but it can also be used if there are a large number of warnings and it is difficult to eliminate warnings manually per line.
First create a file mcs.rsp under the Asset folder
Then open the mcs.rsp using a text editor and write the corresponding warning in the following format
Which type of warning to disable is decided according to your actual needs, and it is not highly recommended to disable too many types of warnings.
Thank you for reading this article carefully. I hope the article "how to eliminate unwanted yellow warnings in Unity game development" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.