[SOLVED] Which display weapon method is better for performance

Hi, two questions:

  1. Which display weapon method is better for performance:

World gun, parented to player camera

3D Screen, UI element

  1. Do UI Screen elements take into account post-effect shader calculations, if so, is there a way to disable those calculations for those objects.

I don’t see any performance difference between two for a 2D weapon.

Yes, there is a property in the post effects handler which you can use to set the layer at which post effects shading should stop.

https://developer.playcanvas.com/en/api/pc.CameraComponent.html#disablePostEffectsLayer

1 Like

Thank you for the straight-forward answers.

1 Like