Skip to content

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

Description

@maziluradu

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions