v3.6.1 Documentation
Fungus.Clickable2D Class Reference

Detects mouse clicks and touches on a Game Object, and sends an event to all Flowchart event handlers in the scene. More...

Inheritance diagram for Fungus.Clickable2D:

Public Member Functions

void OnPointerClick (PointerEventData eventData)
 
void OnPointerEnter (PointerEventData eventData)
 
void OnPointerExit (PointerEventData eventData)
 

Protected Member Functions

virtual void ChangeCursor (Texture2D cursorTexture)
 
virtual void DoPointerClick ()
 
virtual void DoPointerEnter ()
 
virtual void DoPointerExit ()
 
virtual void OnMouseDown ()
 
virtual void OnMouseEnter ()
 
virtual void OnMouseExit ()
 

Protected Attributes

bool clickEnabled = true
 
Texture2D hoverCursor
 
bool useEventSystem
 

Properties

bool ClickEnabled [set]
 Is object clicking enabled. More...
 

Detailed Description

Detects mouse clicks and touches on a Game Object, and sends an event to all Flowchart event handlers in the scene.

The Game Object must have a Collider or Collider2D component attached. Use in conjunction with the ObjectClicked Flowchart event handler.

Definition at line 14 of file Clickable2D.cs.

Member Function Documentation

◆ ChangeCursor()

virtual void Fungus.Clickable2D.ChangeCursor ( Texture2D  cursorTexture)
protectedvirtual

Definition at line 25 of file Clickable2D.cs.

◆ DoPointerClick()

virtual void Fungus.Clickable2D.DoPointerClick ( )
protectedvirtual

Definition at line 35 of file Clickable2D.cs.

◆ DoPointerEnter()

virtual void Fungus.Clickable2D.DoPointerEnter ( )
protectedvirtual

Definition at line 47 of file Clickable2D.cs.

◆ DoPointerExit()

virtual void Fungus.Clickable2D.DoPointerExit ( )
protectedvirtual

Definition at line 52 of file Clickable2D.cs.

◆ OnMouseDown()

virtual void Fungus.Clickable2D.OnMouseDown ( )
protectedvirtual

Definition at line 60 of file Clickable2D.cs.

◆ OnMouseEnter()

virtual void Fungus.Clickable2D.OnMouseEnter ( )
protectedvirtual

Definition at line 68 of file Clickable2D.cs.

◆ OnMouseExit()

virtual void Fungus.Clickable2D.OnMouseExit ( )
protectedvirtual

Definition at line 76 of file Clickable2D.cs.

◆ OnPointerClick()

void Fungus.Clickable2D.OnPointerClick ( PointerEventData  eventData)

Definition at line 97 of file Clickable2D.cs.

◆ OnPointerEnter()

void Fungus.Clickable2D.OnPointerEnter ( PointerEventData  eventData)

Definition at line 109 of file Clickable2D.cs.

◆ OnPointerExit()

void Fungus.Clickable2D.OnPointerExit ( PointerEventData  eventData)

Definition at line 121 of file Clickable2D.cs.

Member Data Documentation

◆ clickEnabled

bool Fungus.Clickable2D.clickEnabled = true
protected

Definition at line 17 of file Clickable2D.cs.

◆ hoverCursor

Texture2D Fungus.Clickable2D.hoverCursor
protected

Definition at line 20 of file Clickable2D.cs.

◆ useEventSystem

bool Fungus.Clickable2D.useEventSystem
protected

Definition at line 23 of file Clickable2D.cs.

Property Documentation

◆ ClickEnabled

bool Fungus.Clickable2D.ClickEnabled
set

Is object clicking enabled.

Definition at line 91 of file Clickable2D.cs.


The documentation for this class was generated from the following file: