Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

if input.get touch

if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Moved) {
            // Get movement of the finger since last frame
            Vector2 touchDeltaPosition = Input.GetTouch(0).deltaPosition;

            // Move object across XY plane
            transform.Translate(-touchDeltaPosition.x * speed, -touchDeltaPosition.y * speed, 0);
        }
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# query string builder 
Csharp :: access label from another class c# 
Csharp :: dictionary all key where value c# 
Csharp :: oracle c# parameters wont work 
Csharp :: curl rest api keycloak 
Csharp :: Ignore case string linq c# 
Csharp :: find gameobject by name in root 
Csharp :: wpf get name of clicked element 
Csharp :: c# press ctrl and alt 
Csharp :: convert word files to plain text c# 
Csharp :: camera in raylib c# 
Csharp :: caesar cipher in C# 
Csharp :: indexing an array 
Csharp :: unity error log 
Csharp :: C# random multiple of 5 in range 
Csharp :: vb.net drag window without titlebar 
Csharp :: autoit console write 
Csharp :: How to set default page asp.net MVC 
Csharp :: unity camera.main.screentoworldpoint(input.mouseposition) not working 
Csharp :: unity screen size fix 
Csharp :: insert data to access database c# 
Csharp :: dbset 
Csharp :: restrictions 
Csharp :: symfony debug bar 
Csharp :: how to use var in c# 
Csharp :: cloudmailin c# 
Csharp :: building a config object in XML C# 
Csharp :: dynamics 365 create record c# 
Csharp :: how to subtract two rows asp ne gridview in asp.net 
Csharp :: ef6 export update 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =