代码很简单如下 将此代码挂载到上层节点上即可 using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class ClickEventPenetration : MonoBehaviour, IPointerClickHandler { public void OnPointerClick(PointerEventData eventData) { PassEvent(eventData, ExecuteEvents.pointerClickHandler); } private void PassEvent<T>(PointerEventData pointerEventData, ExecuteEvents.EventFunction<T> eventFunction) where T : IEventSystemHandler { List<RaycastResult> raycastResults = new...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with pointerEvent
Contact pointerEvent, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack