Snappoints - Valheim-Modding/Wiki GitHub Wiki
Snappoints
To setup valid snappoints there are a number of requirements that must be met:
the parent GameObject
- needs a
Piece
script attached - needs a collider component itself or as a child (any depth)
- the GameObject of the collider needs to be in layer
piece
(layer 10) orpiece_nonsolid
(layer 16)
the snappoint
- needs to be a direct child GameObject of the
Piece
- needs the
snappoint
tag - needs to be in a 0.5 radius of any collider face
- can be disabled
- often named
_snappoint
, but this is not necessary