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

When used inside a Unity Package, TypeOptions(ShowAllTypes = true) will not show Types from the main project #44

Open
maziluradu opened this issue Jun 24, 2024 · 0 comments

Comments

@maziluradu
Copy link

When used inside a Unity Package, TypeOptions(ShowAllTypes = true), will only show Types which are part of the assembly of that Unity Package, and not Types from the "main" project.

A workaround is using:
[Inherits(typeof(MonoBehaviour), IncludeAdditionalAssemblies = new[] { "Assembly-CSharp" })]

However, by using this workaround, Types defined in a separate assembly inside the "main" project will still not show - a package will need to specifically include the separate assembly name from the consuming project inside the "IncludeAdditionalAssemblies" array.

@maziluradu maziluradu changed the title When used inside a Unity Package, TypeOptions(ShowAllTypes = true) will not show Types from the project When used inside a Unity Package, TypeOptions(ShowAllTypes = true) will not show Types from the main project Jun 24, 2024
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

No branches or pull requests

1 participant