unity中UnityEngine.EventSystems类PointerEventData包含的属性数据

本文介绍了Unity中的UnityEngine.EventSystems.PointerEventData类,详细解析了其包含的字段和属性,如button、clickCount、delta等,以及相关的方法如IsPointerMoving、IsScrolling。该类在处理用户输入和交互时起到关键作用,可用于移动对象等功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

namespace UnityEngine.EventSystems
{
	public class PointerEventData : BaseEventData
	{
		//
		// Fields
		//
		public List<GameObject> hovered;

		//
		// Properties
		//
		public PointerEventData.InputButton button {
			[CompilerGenerated]
			get;
			[CompilerGenerated]
			set;
		}

		public int clickCount {
			[CompilerGenerated]
			get;
			[CompilerGenerated]
			set;
		}

		public float clickTime {
			[CompilerGenerated]
			get;
			[CompilerGenerated]
			set;
		}

		public Vector2 delta {
			[CompilerGenerated]
			get;
			[CompilerGenerated]
			set;
		}

		public bool dragging {
			[CompilerGenerated]
			get;
			[CompilerGenerated]
			set;
		}

		public bool eligibleForClick {
			[CompilerGenerated]
			get;
			[CompilerGenerated]
			set;
		}

		public Camera enterEventCamera {
			get;
		}

		public GameObject lastPress {
			[CompilerGenerated]
			get;
			[CompilerGenerated]
			private set;
		}

		public RaycastResult pointerCurrentRaycast {
	
AndroidJavaException: java.lang.ClassNotFoundException: com.yourcompany.filechooser.FileChooser java.lang.ClassNotFoundException: com.yourcompany.filechooser.FileChooser at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:509) at com.unity3d.player.UnityPlayer.nativeRender(Native Method) at com.unity3d.player.UnityPlayer.access$800(Unknown Source:0) at com.unity3d.player.UnityPlayer$g$1.handleMessage(Unknown Source:181) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:193) at com.unity3d.player.UnityPlayer$g.run(Unknown Source:20) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.yourcompany.filechooser.FileChooser" on path: DexPathList[[zip file "/data/app/com.CloudClusterStudio.zpqdemo-mDt92J6AodOZRKXqTUs2Yg==/base.apk"],nativeLibraryDirectories=[/data/app/com.CloudClusterStudio.zpqdemo-mDt92J6AodOZRKXqTUs2Yg==/lib/arm64, /data/app/com.CloudClusterStudio.zpqdemo-mDt92J6AodOZRKXqTUs2Yg==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 8 more at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AndroidJNISafe.FindClass (System.String name) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AndroidJavaClass._AndroidJavaClass (System.String className) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AndroidJavaClass..ctor (System.String className) [0x00000] in <00000000000000000000000000000000>:0 at 导出.开始导出 () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Events.InvokableCall.Invoke () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.UI.Button.Press () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1].Invoke (T1 handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData pointerEvent, System.Boolean pressed, System.Boolean released) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.EventSystem.Update () [0x00000] in <00000000000000000000000000000000>:0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean) UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents() UnityEngine.EventSystems.StandaloneInputModule:Process() UnityEngine.EventSystems.EventSystem:Update() 报错如何解决
07-27
UnassignedReferenceException: The variable selectToggleGroup of ServerGuestPanel has not been assigned. You probably need to assign the selectToggleGroup variable of the ServerGuestPanel script in the inspector. ServerGuestPanel.OnToggleValueChanged (System.Boolean isOn, System.Int32 index) (at Assets/Scripts/UI/Panels/ServerGuestPanel.cs:2221) ServerGuestPanel+<>c__DisplayClass174_0.<SkillOnInit>b__0 () (at Assets/Scripts/UI/Panels/ServerGuestPanel.cs:2180) UnityEngine.Events.InvokableCall.Invoke () (at <7ec46b65c5b844eba68646b3c21027d3>:0) UnityEngine.Events.UnityEvent.Invoke () (at <7ec46b65c5b844eba68646b3c21027d3>:0) UnityEngine.UI.Button.Press () (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/Button.cs:70) UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/Button.cs:114) UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:57) UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:272) UnityEngine.EventSystems.EventSystem:Update() (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:514) 什么问题
最新发布
07-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值