Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity detect a touch on ui element

foreach (Touch touch in Input.touches)
{
    int id = touch.fingerId;
    if (EventSystem.current.IsPointerOverGameObject(id))
    {
        // ui touched
    }
 }
Comment

PREVIOUS NEXT
Code Example
Csharp :: vb.net remove last comma from string 
Csharp :: interpolate rotation unity3d 
Csharp :: yield c# 
Csharp :: scale between tow ranges c# 
Csharp :: datatable iqueryable c# linq 
Csharp :: convert uint to int C# 
Csharp :: unity2d movement 
Csharp :: c# system.text.json deserialize 
Csharp :: take space separated input in c# 
Csharp :: unity switch to scene and transfer data 
Csharp :: c# make file writable 
Csharp :: C# Bitwise Right Shift 
Csharp :: vb.net get date minus one day 
Csharp :: c# how to compare 2 dates without time 
Csharp :: set file to read only C# 
Csharp :: string to array c# 
Csharp :: C# int array initial values 
Csharp :: add list to list c# 
Csharp :: c# async constructor 
Csharp :: c# get a value from value tuple list 
Csharp :: .net 4.5 use tls 1.2 
Csharp :: loop for specific time c# 
Csharp :: c# validate xml 
Csharp :: .net json result status code not working 
Csharp :: run in new thread C# 
Csharp :: c# list any retun indec 
Csharp :: C# scrape html document 
Csharp :: flat view player movement script 
Csharp :: get gameobject active state 
Csharp :: unity collapse hierarchy script 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =