-
Notifications
You must be signed in to change notification settings - Fork 74
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
URDF Importer causing WebGL build errors in Unity #201
Comments
Have you fix this error? |
Hi, we are running into the same issue. We simply load a basic URDF in Unity and try to build it for WebGL. The build fails with the following errors:
Environment:
Is there any alternate way to build robot models for WebGL on Unity? |
In the same project, we use URDF-Importer in Unitye Editor, but we also have scenes that are built for WebGL. As noted in Unity-Technologies#201 WebGL builds of a project that has URDF-Importer package always fail, even if URDF-Importer is not used during runtime. This commit marks the conflicting plugins to exclude WebGL. NOTE: URDF-Importer scripts will not be usable in WebGL builds: Runtime/Unity.Robotics.URDFImporter.asmdef still excludes WebGL. This change allows scenes that don't use URDF-Importer to build.
I'm using URDF importer tool to import my ROS env into unity. The import is successful. I could also simulate the environment and everything looks to be working fine. However when I try building the unity project for WebGL I get build errors. Looks like these errors are related to URDF Importer. When I remove the URDF importer from the package manager, the build succeeds with no errors, but I may need to use the URDF Importer at runtime later as I add more features to the project. (This bug is essentially the same as the one reported in #122, except my build is targeting WebGL.)
Here's the console output
Here's my build options.
Environment:
The text was updated successfully, but these errors were encountered: