[UE4]name slot一个种应用技巧

如图所示“MouseOver”是一个Child Widget,是一个按钮。

“Image_0”跟“MouseOver”是重叠在一起的,这样“Image_0”就会挡住“MouseOver”按钮的事件响应。

如果要实现点击“Image_0”不阻挡“MouseOver”按钮的事件响应,则可以给”MouseOver”控件增加一个“Name Slot”插槽,

然后把“Image_0”拖放到这个“Name Slot”插槽,也就是成为“MouseOver”控件的子级,这样点击“Image_0”就不会阻挡“MouseOver”的事件响应了。

 

相关文章:

  • 2022-02-11
  • 2021-11-16
  • 2022-02-01
  • 2021-09-10
  • 2021-09-24
  • 2021-12-18
  • 2021-07-12
  • 2022-01-10
猜你喜欢
  • 2021-07-13
  • 2021-05-31
  • 2021-06-14
  • 2021-09-24
  • 2021-06-15
  • 2021-05-29
相关资源
相似解决方案