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

Allow no constructor (stripped) for Component #150

Merged
merged 1 commit into from
Feb 26, 2021

Conversation

hadashiA
Copy link
Owner

I've seen an example of a WebGL build where the following error occurs.

VContainerException: Type does not found injectable constructor, type: WheelJoint2D
VContainer.Internal.TypeAnalyzer.Analyze (System.Type type) (at <0000000...)

WheelJoint2D is a built-in component of Unity.
Perhaps Unity sometimes strips the constructor of the Component at build time.
Since Component doesn't really use the constructor, I'm going to allow it to be null.

@vercel
Copy link

vercel bot commented Feb 26, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/hadashia/vcontainer/KwWiLhXoYDeFutjU1rdUSFgNZSPE
✅ Preview: https://vcontainer-git-ku-fix-constructor-stripped-component-hadashia.vercel.app

@hadashiA hadashiA merged commit 4325761 into master Feb 26, 2021
@hadashiA hadashiA deleted the ku/fix-constructor-stripped-component branch February 26, 2021 00:33
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