SerializableCallback icon indicating copy to clipboard operation
SerializableCallback copied to clipboard

SerializableCallbackDrawer Subclass Return Types

Open mooreleo opened this issue 6 years ago • 0 comments

The method drop down in the inspector panel does not consider methods with return types that are sub-types of the SerializableCallback class type argument.

Suggest changing line 172 of SerializableCallbackDrawer to the following:

// accept return type and sub-types of return type if (returnType != null && method.ReturnType != returnType && !method.ReturnType.IsSubclassOf(returnType)) continue;

There may be other areas in the project that can also benefit from such logic.

Nice job on the project though, this has solved my problem very well =)

mooreleo avatar Mar 03 '19 02:03 mooreleo