Shape sampler

The shape sampler allows you to sample different properties of various 3D shapes (including custom meshes):
Shape sampler
Selecting or hovering a shape sampler displays its shape in the viewport
Shape samplers are either generic primitives (box, sphere, …​) or static meshes (FBX files) that can be used to extract shape properties (positions, normals, uvs…​) at a random or specific location.

Shape samplers are most commonly used with the following templates:

  • shape.sample

  • shape.properties

  • shape.sampleFromUV

  • shape.sampleDistanceField

  • shape.project

  • shape.contains

  • Projection

  • mesh.sample

  • mesh.properties

  • Spawn on Mesh

Note: Shapes can be overridden by any other shape (including animated meshes) by the game engine when using attribute samplers.