0
Fixed

OnPointerClick, OnPointerEnter, and OnTriggerEnter not firing in Bolt 2

Daniel Robbins 2 years ago updated by Lazlo Bonin (Lead Developer) 12 months ago 3

REPOST from Questions as this hasn't been answered

GUI events (OnPointerClick) doesn't seem to fire in Bolt 2 in identical scene to a Bolt 1 example. Any help is appreciated. In addition, OnTriggerEnter, also doesn't seem to work in Bolt 2. I have also verified with very simple projects that the same "script" does work in Bolt 1.x but not Bolt 2.

Here's a link to a ZIP of my entire project (55mb) that only has three objects in it and one Flow Machine macro:

https://drive.google.com/open?id=1FArGj266ZD_6Re6xfmwQz3WeNtIjabQq

And here's an image comparing Bolt 1.x to 2.x where the console window correctly shows output for Bolt 1.x but not Bolt 2.x

Bolt Version:
Bolt 2
Unity Version:
2018.3.2f1
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Bolt 2
GOOD, I'M SATISFIED
Satisfaction mark by Daniel Robbins 12 months ago

LazloToday at 1:04 PM

@dcr Here's a hotfix that should work. In PointerEventProxy.cs, try adding these inherited interfaces:

    public sealed class PointerEventProxy : MonoBehaviour,
        IPointerEnterHandler,
        IPointerExitHandler,
        IPointerDownHandler,
        IPointerUpHandler,
        IPointerClickHandler
+1
Fixed in Alpha

Again thanks for the report on this, the official fix will be included in Alpha 4!