Overview
Matter was meant to end the protocol arguments, and on a flat home network it largely does. On a segmented UniFi network it becomes the fussiest thing in the house.
The reason is what Matter runs on. Home Assistant's Matter documentation describes a protocol that rides existing IP infrastructure and depends on local IPv6 and mDNS moving freely.
That same page warns, in plain words, that Matter may not integrate well with the enterprise networking it names: VLANs, multicast filtering and malfunctioning IGMP snooping. Remember that this is the vendor's own documentation, not a forum opinion.
What's more, Thread raises the stakes, because it is IPv6-only end to end. A Thread device has no IPv4 address to fall back on when something in the middle is misconfigured.
Accordingly, this guide covers what each protocol asks of a UniFi network, which UniFi settings interfere, and how to pick a Thread channel that your Wi-Fi is not already sitting on. Every requirement comes from Home Assistant's or Ubiquiti's documentation rather than from folklore.