Closed rotter closed 5 years ago
Will definitely check it out, thanks.
I can't understand how DeclaringType or PropertyType of a property can be void. Although I can resolve this issue by adding some if conditions, I'm super duper curious about this property. I'd really appreciate it if you could add a Debug.Log statement prior to the problematic line and check out the Name, DeclaringType, PropertyType and etc. values of the propertyInfo so that we can identify it and learn more about it.
P.S. Oh nevermind. After enabling "Allow 'unsafe' Code" in Player Settings and declaring a "unsafe public void* A { get; set; }" property, I was able to reproduce the issue. My curiosity is satisfied.
Here is the Log:
propertyInfo.Name[currentStatePtr] DeclType[UnityEngine.InputSystem.InputControl] PropType[System.Void] Method[Void get_currentStatePtr()]
Maybe it's related to the New Input System? The weird thing is that the other projects which dont crash also use the NIS.
Thank you for the super quick answer!
On my Player Settings "Allow 'unsafe' Code" is disabled (never used it), but maybe it's enabled on some library I use, or something, not sure.
Im getting an exception on this line when I perform a search on any asset:
https://github.com/yasirkula/UnityAssetUsageDetector/blob/3719ce747355b031e8841f9d1c19eda42379bf0a/Plugins/AssetUsageDetector/Editor/Utilities.cs#L353
I really dont know what is special about this project Im getting the error. On my other projects (which are on the same Unity version: 2019.2.6) it's working fine. If I reset the search and re-do it, I get the error again. I also get the error when context-right-clicking to start a search. I get the error on any asset I try searching.
Im using the latest version of the plugin (1.5.2 if I recall correctly)
Full stack trace: