Skip to content

ClickOutsidePanelEvent

Jack Brookes edited this page Mar 23, 2019 · 1 revision

UXF.ClickOutsidePanelEvent

A script that invokes a UnityEvent if you click outside of the attached UI rectTransform area Useful for closing a panel when a mouse click is outside of the panel


Fields

None

Properties

None

Methods

UXF.ClickOutsidePanelEvent.HideIfClickedOutside()

Invokes an event if a mouse click was made outside the bounds of the UI the script is attached to

Parameters

None

UXF.ClickOutsidePanelEvent.CheckVisible()

Check if the GameObject the script is attached to is visible in the scene - If there is no parent canvas, the GameObject has to be active in the hierarchy - If there is a parent canvas, the canvas has to be enabled and the GameObject active in the hierarchy

Parameters

None


Note: This file was automatically generated

๐Ÿง  Core topics

โ“ More help


๐Ÿ‘ฉโ€๐Ÿ’ป Programming reference

Unit tests

Clone this wiki locally