"Generate Custom Inspectors" menu item causes compiler errors

MostHated 2 years ago updated by Lazlo Bonin (Lead Developer) 1 year ago 5 1 duplicate

Hey there, 

I went to use "Generate custom inspectors' but now I am stuck with the following error which repeats itself 4 times and blocks compilation. There were no issues of any sort prior to that.

I am also using Odin, in case that might have anything to do with it. I didn't really consider that before attempting to test this function out to see what kind of inspectors it would generate. My own fault for not looking it up first. Stuck though, none the less.

** Edit - I found the Ludiq.Generated folder and deleted the transient data, which then got rid of the errors, at least. Perhaps I should just leave well enough alone, lol.

[CompilerError] There is no argument given that corresponds to the required formal parameter 'decoratorType' of 'RegisterSerializedPropertyProviderAttribute.RegisterSerializedPropertyProviderAttribute(Type, Type)'

Compiler Error at Assets\Ludiq.Generated\Transient\Property Providers\PropertyProvider_Ludiq_PeekCore_LudiqComponent.cs:20 column 3

18: namespace Ludiq.Generated.PropertyProviders
19: {
-->20: [Ludiq.PeekCore.RegisterSerializedPropertyProviderAttribute(typeof(Ludiq.PeekCore.LudiqComponent))]
21: public class PropertyProvider_Ludiq_PeekCore_LudiqComponent : Ludiq.PeekCore.SerializedPropertyProvider { }
22: }
Unity Version:
Peek Version:

Duplicates 1

Not a Bug

Hi MostHated,

Thanks for the report and sorry about the delay.

Indeed, the "Generate Custom Inspectors" menu item is hidden and undocumented because it is not supported. Deleting the "Ludiq.Generated" folder is the way to go to fix the errors. It will be removed in future versions to avoid this kind of error.

Not a Bug

Hi NubbyNinja,

Thanks for the report and sorry for the delay.

Please delete the Ludiq.Generated folder.

It was created because you clicked the hidden menu item "Generate Custom Inspectors", which is undocumented and unsupported. This menu item will get removed in a future version to avoid this kind of mistake.

Fixed (Unreleased)

The "Generate Custom Inspectors" menu entry will be hidden in the next version.