Skip to content

rob5300/Unity-EventSystem-Events-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published