unity – Model missed by both EventSystem.current.RaycastAll and IPointerClickHandler unless disabled and re-enabled in the Editor

I have a situation where a model is ignored in favour of one behind it. The rear model is returned by EventSystem.current.RaycastAll, and the front model’s IPointerClickHandler callback isn’t triggered if the rear model is present. The rear model does not implement IPointerClickHandler (or pointer up/down handlers, etc). Both these things work on the front model if the rear model isn’t there.

Debugging shows that the Raycast is only returning one result. By comparing behaviour when the rear model is and isn’t present, I can verify that the distance value in the RaycastResult is greater when hitting the rear model than when hitting the front model.

I can “fix” the problem by using the Inspector to disable and re-enable the front model.

Here’s the problem and the “fix” in action:

enter image description here

Higher quality version here.

EventSystem.current.RaycastAll is used to power the tooltips, and IPointerClickHandler is (unsurprisingly) used to get the cube model to react to clicks.

Unity version: 2020.3.11f1

Unity: Model missed by both EventSystem.current.RaycastAll and IPointerClickHandler unless disabled and re-enabled in the Editor

I have a situation where a model is ignored in favour of one behind it. The rear model is returned by EventSystem.current.RaycastAll, and the front model’s IPointerClickHandler callback isn’t triggered if the rear model is present. The rear model does not implement IPointerClickHandler (or pointer up/down handlers, etc). Both these things work on the front model if the rear model isn’t there.

Debugging shows that the Raycast is only returning one result. By comparing behaviour when the rear model is and isn’t present, I can verify that the distance value in the RaycastResult is greater when hitting the rear model than when hitting the front model.

I can “fix” the problem by using the Inspector to disable and re-enable the front model.

You can find a video of the problem and “fix” in action here: https://imgur.com/a/Oku79iB

EventSystem.current.RaycastAll is used to power the tooltips, and IPointerClickHandler is (unsurprisingly) used to get the cube model to react to clicks.

Network services deleted via terminal reenabled after Restart

I have written a shell script to remove all services excluding ethernet. The aim is to remove these services and PPPoE entries so the end user only sees ethernet under Preferences > Networking.

However, after a restart the services return. This also happens with just running the terminal command networksetup deletepppoeservice [servicename]

I presume there is a plist somewhere that repopulates these entries, however I have deleted networkInterfaces.plist to no effect.

Here is the code snippet in question:

SERVICE="Ethernet"
for NETSERV in ${networkService[@]}; do
    if [[ "$NETSERV" != "$SERVICE" ]]; then
        networksetup deletepppoeservice "$NETSERV";
    fi
doneSERVICE="Ethernet"
for NETSERV in ${networkService[@]}; do
    if [[ "$NETSERV" != "$SERVICE" ]]; then
        networksetup deletepppoeservice "$NETSERV";
    fi
done

The goal:
enter image description here

Thanks.

gmail – Certain (mainly Google) apps crashing on phone after Google app disabled and re-enabled

The Google app was taking up half a gigabyte of storage even though I never use it, so I cleared its data and disabled it. After I did this, Gmail and Outlook crashed, so I re-enabled the main Google app. Gmail and Outlook were still failing, however.

Since the main Google app was now an earlier version, I thought maybe I should update it. Although I can open the main Google app, it crashes as soon as I switch to the “Update” tab, so that’s not an option. I also tried clearing my Gmail and Outlook data to see if that would help, as well as disabling and re-enabling Gmail, but neither had any effect.

I’ve also cleared all data from Google Play Services and restarted my phone to no avail. If I try to visit Google settings from the Settings app, then the Settings app freezes. What can I do to make these apps operable again? Note that not all Google apps are afflicted. For example, I can still use Drive, YouTube, and the Play Store.

For a little more detail, the Gmail is receiving data. I can see new messages for the half-second that the app is open before it crashes. If I try to send a crash report, the crash-report-sending services crashes too.

I’m using a Samsung Galaxy S7 Edge running Android 8.0.0.