Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Unity EventSystem Events Example

This project provides some examples of implementing and using EventSystem events (IPointerClickHandler and similar)

Screenshot of example scene

How to use

Clone/download whole project and open in Unity 6000年2月7日 or later and open "Scenes/3DEventSystemExample".

Implementation Overview

This project provides the following implementation examples:

The core requirements to use these IPointer events are:

  • An EventSystem instance in a loaded scene
  • PhysicsRaycaster or Physics2DRaycaster component on your camera
  • 3D or 2D collider on the GameObject that should recieve IPointer events.

Warning

Ensure the EventMask layers configured on your 3d/2d physics raycaster are correct as this controls what layers can be "hit". This affects what can block events and what can recieve events.

UI will block these pointer events if the UI layer is configured in EventMask (this is the default)

About

Unity EventSystem Pointer events example project

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /