Back to the Shapespark home page

The size of the material picker

I want to know how to change the size of the material picker.
Isn’t it in the function of the material picker itself?

When I teleport, the material picker is still visible, so I want to hide it

Is it possible to add a close button to the material picker?

You can configure the maximum size of the material sample sphere by placing a body-end.html file in the scene directory containing:

<script>
  WALK.MATERIAL_PICKER_BALL_MAX_SIZE = 0.1;
</script>

0.1 means that a sphere can take at most 10% of the screen width, but can be made smaller to fit all the spheres in a row. You can adjust the value to make the spheres smaller or larger.

Unfortunately, this behavior cannot be implemented using the viewer API.