How remove gltf model

Hello i did function to remove model but it no work?

You have to declare x outside of the onLoad() callback.

BTW: Please stop using screenshots of code, see Runtime error with callback function.

2 Likes