You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: