Skip to content

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

Open
12Acorns wants to merge 2 commits intoSolidAlloy:masterfrom
12Acorns:master
Open

Fixed giving null assembly name when assembly is present.#11
12Acorns wants to merge 2 commits intoSolidAlloy:masterfrom
12Acorns:master

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