Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

press key run code unity c#

if(Input.GetKey(KeyCode.space))
	{
  		print("Space key was pressed")
	}
Comment

unity on key press

// Arrow Keys
Input.GetKeyDown(KeyCode.UpArrow)

// Specific Letter e.g. "A"
Input.GetKeyDown(KeyCode.A)

// Space
Input.GetKeyDown(KeyCode.Space)
Comment

PREVIOUS NEXT
Code Example
Csharp :: wpf button 
Csharp :: save byte array to file c# 
Csharp :: unity cap fps 
Csharp :: godot c# export variables 
Csharp :: Local to global position unity 
Csharp :: foreach enum 
Csharp :: process.start web 
Csharp :: asp.net core get root url in view 
Csharp :: c# Get type with namespace 
Csharp :: array to list c 
Csharp :: unity action example 
Csharp :: c# if int is in range 
Csharp :: divide string in chunks c# 
Csharp :: getmousebuttondown unity 
Csharp :: dotnet call webapi 
Csharp :: c# write to output window 
Csharp :: variable gameobject unity 
Csharp :: max value data annotation c# 
Csharp :: change color of object unity 
Csharp :: datatable linq where clause c# 
Csharp :: how to pass optional guid parameters in c# 
Csharp :: how to make button in asp.net to go to other page 
Csharp :: difference between boxing and unboxing in c# 
Csharp :: unity text color 
Csharp :: convert list of tuples to dictionary c# 
Csharp :: get sha1 hashcode from c# 
Csharp :: c# get custom attribute from property 
Csharp :: verify if number c# 
Csharp :: c# delete files in directory and subdirectories 
Csharp :: cast char[] to string c# 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =