unity ngui中出现问题Failed to call function OnClick of class...
场景中的某个物体如下:代码内容如下:在运行的时候点击该物体出现错误:FailedtocallfunctionOnClickofclassDogHeadSHakeCalli...
场景中的某个物体如下:
代码内容如下:
在运行的时候点击该物体出现错误:
Failed to call function OnClick of class DogHeadSHake
Calling function OnClick with no parameters but the function requires 1.
UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)
UICamera:Notify(GameObject, String, Object) (at Assets/NGUI/Scripts/UI/UICamera.cs:794)
UICamera:ProcessTouch(Boolean, Boolean) (at Assets/NGUI/Scripts/UI/UICamera.cs:1463)
UICamera:ProcessMouse() (at Assets/NGUI/Scripts/UI/UICamera.cs:1092)
UICamera:ProcessTouches() (at Assets/NGUI/Scripts/UI/UICamera.cs:1162)
UICamera:Update() (at Assets/NGUI/Scripts/UI/UICamera.cs:939)
请问这是怎么回事,该怎么解决?
物体中的碰撞体忘了勾IsTrigger,勾上以后同样还是有问题的。 展开
代码内容如下:
在运行的时候点击该物体出现错误:
Failed to call function OnClick of class DogHeadSHake
Calling function OnClick with no parameters but the function requires 1.
UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)
UICamera:Notify(GameObject, String, Object) (at Assets/NGUI/Scripts/UI/UICamera.cs:794)
UICamera:ProcessTouch(Boolean, Boolean) (at Assets/NGUI/Scripts/UI/UICamera.cs:1463)
UICamera:ProcessMouse() (at Assets/NGUI/Scripts/UI/UICamera.cs:1092)
UICamera:ProcessTouches() (at Assets/NGUI/Scripts/UI/UICamera.cs:1162)
UICamera:Update() (at Assets/NGUI/Scripts/UI/UICamera.cs:939)
请问这是怎么回事,该怎么解决?
物体中的碰撞体忘了勾IsTrigger,勾上以后同样还是有问题的。 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏5(财富值+成长值)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询