Skip to content
New issue

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

Fixed giving null assembly name when assembly is present. #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

12Acorns
Copy link

@12Acorns 12Acorns commented Oct 9, 2024

Currently, as of unity 2022 (did not test any newer), if an assembly does not have a dot '.' in its name the function:
GetAssemblyName(Args) will return an empty string, instead of the assemblyName.

Instead, the method should only return an empty string if the assemblyName is empty/null, and return the assemblyName if the dotIndex is -1 (else perform the string split)

@12Acorns
Copy link
Author

12Acorns commented Oct 9, 2024

This specifically fixes an issue with GenericUnityObjects on unity 2022 (and possibly up)

Copy link
Author

@12Acorns 12Acorns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should work fine, if any problems just let know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant