Cannot read properties of null (reading 'gsplat')

Hi, I just forked “statues” 3DGS project, deleted HDRI background and replaced my splats with the default ones (compressed by supersplat) and buttons to switch splats no longer work. Debug console shows only: Cannot read properties of null (reading ‘gsplat’). Any idea whats wrong?

https://playcanvas.com/project/1285523
Thanks

@slimbuck

1 Like

Did you verify if the gsplat object is being initialized properly or if it’s being replaced when switching splats?

I have 3 splats there and all three show up in editor. If I launch the app, switching does not work.

Check if gsplat references are properly assigned at runtime. It might be losing them during app initialization or splat switching