Skip to main content

AR Brush

The AR Brush component allows you to add a brush feature that lets you draw on your screen using your finger, creating an interactive brush effect in augmented reality.

inspector panel ar brush

To add a AR Brush component:

  1. Go to the Inspector panel
  2. Click the Add Component button
  3. Go to AR Capability
  4. Select AR Brush

Properties

PropertyDescription
Start MeshAdds the starting mesh from the Assets panel to a scene object
Main MeshAdds the main mesh from the Assets panel to a scene object
End MeshAdds the ending mesh from the Assets panel to a scene object
Brush ColorThe HEX color of the brush displayed on the screen
Custom TextureEnables a custom texture with brush texture as a property
  • Brush Texture: Chooses the asset of the brush texture
Brush SizeControls the scale of the brush texture
Screen DistanceControls the distance of the brush texture
Enable AR TrackEnables AR ability, giving the drawn object an AR effect. Disabling this property will use a regular 3D brush.
Clear CanvasEnables clearing of the brush content on the canvas
GlowEnables the bloom property
  • Stroke: Filter out the brightness under this level to glow
  • Color: The HEX color of the glow displayed on the screen
  • Diffusion: Controls how spread out points are from the main line. Higher values create more scattered and loose effects, while lower values keep points closer to the center.
  • Intensity: Controls how densely points are generated while drawing. Higher values create more detailed and solid lines, while lower values produce lighter, more scattered lines.
  • Direction: Distort the Glow to simulate an anamorphic lens effect. The number represents the direction of distortion. Negative values distort vertically while positive values distort horizontally.