Feel free to contact us if you have any ideas about what errors the analyzer should detect in Unity projects.Īdvanced handling of suppress files in Visual Studio We intend to further enhance the analysis of Unity projects by fine-tuning existing mechanisms and introducing new diagnostic rules. We've introduced the new V3188 diagnostic rule to search for them. Now PVS-Studio also tracks accesses to methods and properties of potentially destroyed objects. It helps eliminate false positives on dereferencing null references. The new version of the analyzer better recognizes the features of the game engine. This happens because the '=' operator returns true when compared to null if the object being compared is destroyed. If you've ever worked with Unity, you can guess that the only message that will be displayed on the console screen is "obj = null after destroy". GameObject obj = GameObject.CreatePrimitive(PrimitiveType.Sphere) The peculiarity of this overload is that checking for null can return true even if the reference being compared is not null. The '=' operator is overloaded in a peculiar way for many Unity classes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |