Is there a way to control PolySpatialHoverEffect?

I use PolySpatialHoverEffect to highlight hovered objects. But I can’t find any way to change color or size of hovered area or do anything else. Is there a way to configure visual presentation of this hovering?

Also maybe I can create own material, that could use some global shader variables to determine where hover area should be displayed? If such way exists, I would be glad to learn about it.

Unfortunately, no. PolySpatialHoverEffect is simply a proxy for RealityKit’s HoverEffectComponent, which does not offer any way to configure the effect.

RealityKit doesn’t provide us with information about what object is being hovered, so it is impossible for us to support this at present. We only receive information when an actual interaction happens (touch, pinch gesture).

I would definitely encourage you to submit feedback to Apple indicating your interest in ways to customize the hover effect.

For this matter, is the same true for the current Vision OS Hover Effect component?

Yes; that was just a rename. It’s the same implementation as PolySpatial Hover Effect.