Skip to main content

Erasable Collider 2D

Use the Erasable Collider 2D component to create collision areas that can be drawn or erased in real time. Ideal for interactive effects like swiping to dig paths for flowing water in 2D game scenarios.

erasable collider 2d demo

Add the Erasable Collider 2D Component

  1. Go to the Inspector panel
  2. Click the + Add Component button
  3. Go to 2D Physics
  4. Select Erasable Collider 2D
add erasable collider 2d

Properties

erasable collider 2d properties
PropertyDescription
ResolutionDefines the level of detail or smoothness of the collider's path. The default value is 0.5.
Enable EditingWhen checked, allows you to edit the collider directly in the Scene panel
Point XDefines a corner or edge of the collider, and its position directly impacts the collider's shape. If you are in Edit Mode, the points' X and Y values automatically update
Add PointButton to add additional two-dimensional points
Brush SizeSets the brush size of the erasable collider
TextureChooses the asset of the brush texture
Texture UV SettingsWhen checked, this option allows you to set the Offset and Tiling. The default is (0,0) and (1,1)
Custom Brush LocationWhen checked, this option sets a custom brush location. The default is (0,0)
Physics MatterDefines the physical properties of a collider, such as its friction and bounciness
Is TangibleWhen unchecked, the collider will not physically affect other colliders, but will still generate trigger events when another collider enters or exits its bounds. When checked, the collider will physically interact with other colliders, blocking their movement and generating collisions. This property is checked by default
Show ColliderWhen checked, this option allows the box collider to become visible in the scene view, making it easier to visualize and adjust its position and size during the editing process
Copyright © 2025 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalCookies