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

Projectiles not displaying in WebGL Build #14

Open
JiaChen-Zeng opened this issue Dec 30, 2021 · 5 comments
Open

Projectiles not displaying in WebGL Build #14

JiaChen-Zeng opened this issue Dec 30, 2021 · 5 comments

Comments

@JiaChen-Zeng
Copy link

I'm using Unity 2020.3.15f2. If I don't add the shaders to the project settings, it will throw errors like this. And the projectiles won't display.

ArgumentNullException: Value cannot be null.
Parameter name: shader

After I added the shaders like this, it didn't have errors but the projectiles weren't displaying. The projectile number wasn't showing, too.

image

@JiaChen-Zeng
Copy link
Author

If there is a way to use normal shaders instead of these custom shaders, I'd like to know to work around the problem. Thanks.

@JiaChen-Zeng
Copy link
Author

JiaChen-Zeng commented Jan 3, 2022

I tried to use Unity 2020.3.0f1 with the sample project but also with no luck. The projectile number was showing but not the projectiles. I found there was someone from Unity said DrawMeshInstancedIndirect isn't supported on WebGL.

@jongallant
Copy link
Owner

jongallant commented Jan 3, 2022 via email

@hallo1126
Copy link

hallo1126 commented Mar 2, 2022

@jongallant How would one modify this project to work with WebGL? I agree that there is little point to it considering the project was made for precisely this purpose, but your physics still have a lot of nice features implemented. You mentioned disabling instancing?

@JiaChen-Zeng
Copy link
Author

JiaChen-Zeng commented Mar 2, 2022 via email

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

3 participants