polyline画多边形setInputAction

setInputAction 点击获取不到实体,用的polyline画的一个六边形,点击中间区域获取不到实体,这个有什么方法可以解决吗

这边都是说英语的吧,然后你可以发一下code么

You cannot get the entity because you just did not click on the entity. Maybe try drawing a polygon with transparent material in the same entity.