Skip to content

AssetIconAttribute on method not working because of a validation bug (fix included) #41

Description

@zacx-z

When applied to a parameterless method, logging "method should have no parameters" error. Figured it's the bug in the condition of validation. In GraphicSourceSelector.cs, line 108:

		private static bool IsSupportedParameters(Type[] parameterTypes)
		{
			return parameterTypes.Length != 0;
		}

should be

			return parameterTypes.Length == 0;

Metadata

Metadata

Assignees

Labels

🐛 bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions