We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This may not be considered as a bug but I think it is because a serialized field in Unity is a serialized field, no matter if it's public or not.
My icon field is private and serialized but it doesn't display the icon in project view.
[SerializeField] [AssetIcon] Sprite Icon;
To support private serialized Unity fields, GetMembers call in AssetDrawerFactoryLibrary.cs should be changed to this:
var typeMembers = type.GetMembers(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance);
The text was updated successfully, but these errors were encountered:
Scratch the modified line in my original comment.
We need this entire block to be able to support inherited private fields.
var typeMembers = new List<MemberInfo>(); var typeToGetMembers = type; do { typeMembers.AddRange(typeToGetMembers.GetMembers(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)); typeToGetMembers = typeToGetMembers.BaseType; } while (typeToGetMembers != null);
Sorry, something went wrong.
@Fydar would you like to add this support please?
Hello. Is this project dead? It would be sad to see such a nice tool go out of active development/support. :(
No branches or pull requests
This may not be considered as a bug but I think it is because a serialized field in Unity is a serialized field, no matter if it's public or not.
My icon field is private and serialized but it doesn't display the icon in project view.
To support private serialized Unity fields, GetMembers call in AssetDrawerFactoryLibrary.cs should be changed to this:
The text was updated successfully, but these errors were encountered: