transform.Translate movement
C#
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
void Update()
{
// Move the object forward along its z axis 1 unit/second.
transform.Translate(Vector3.forward * Time.deltaTime); // Move the object upward in world space 1 unit/second.
transform.Translate(Vector3.up * Time.deltaTime, Space.World);
}
}
Also in C#:
- Title
- unity change tag in script
- Category
- C#
- Title
- how to work with ascii in c#
- Category
- C#
- Title
- c# split a string and return list
- Category
- C#
- Title
- linq in c#
- Category
- C#
- Title
- write last line txt file c#
- Category
- C#
- Title
- set width of rect transform unity
- Category
- C#
- Title
- csharp datetime string format
- Category
- C#
- Title
- c# download file
- Category
- C#
- Title
- center an image horizontally and vertically
- Category
- C#
- Title
- orderby make sunday last day c#
- Category
- C#
- Title
- how to change the title of the console in c#
- Category
- C#
- Title
- open file in explorer c#
- Category
- C#
- Title
- c# shorten an method
- Category
- C#
- Title
- c# resize bitmap
- Category
- C#
- Title
- find gameobject with tag
- Category
- C#
- Title
- How to get number of months between 2 dates c#
- Category
- C#
- Title
- c# httpclient azure function authorization
- Category
- C#
- Title
- No IUserTwoFactorTokenProvider<TUser> named 'Default' is registered.'
- Category
- C#
- Title
- c# if statement
- Category
- C#
- Title
- downlaod file and use C#
- Category
- C#
- Title
- how to raycast unit
- Category
- C#
- Title
- exit game unity
- Category
- C#
- Title
- unity how to set an objects postion x,y,z
- Category
- C#
- Title
- declare string array c# without size
- Category
- C#
- Title
- covert char[] to string C#
- Category
- C#
- Title
- zoom gedit
- Category
- C#
- Title
- how to add movement in unity
- Category
- C#
- Title
- unity instantiate
- Category
- C#
- Title
- isInstanceOf nunit
- Category
- C#
- Title
- run async methods within a sync process
- Category
- C#
- Title
- c# public static string
- Category
- C#
- Title
- basic sorting algorithms c#
- Category
- C#
- Title
- unity c# get bool from another script
- Category
- C#
- Title
- get web config key value in c# razor view
- Category
- C#
- Title
- unity set material
- Category
- C#
- Title
- never lose focus textbox c#
- Category
- C#
- Title
- countdown script unity
- Category
- C#
- Title
- C# random.Next error
- Category
- C#
- Title
- c# window instantly close
- Category
- C#
- Title
- autoresetevent
- Category
- C#
- Title
- c# remove last value from list
- Category
- C#
- Title
- c# getter setter
- Category
- C#
- Title
- unity make a int arry with preset values
- Category
- C#
- Title
- no overload for 'useItemOnSceneLoad' matches delegate 'UnityAction<Scene, LoadSceneMode>'
- Category
- C#
- Title
- c# update control from another thread
- Category
- C#
- Title
- unity accessing 2d pointlight from c# script
- Category
- C#
- Title
- c# print
- Category
- C#
- Title
- convert system.byte a string c#
- Category
- C#
- Title
- collision detector unity c# 2d
- Category
- C#
- Title
- unity transfoprm position y change
- Category
- C#
- Title
- unity how to change the text on a button
- Category
- C#
- Title
- c# make request to rest api
- Category
- C#
- Title
- convert string to decimal c#
- Category
- C#
- Title
- c# random number between 0 and 1
- Category
- C#
- Title
- create line in unity
- Category
- C#
- Title
- c# properties
- Category
- C#
- Title
- c# razor add disabled to button if
- Category
- C#
- Title
- compose graphql query string in c#
- Category
- C#
- Title
- list contains type c#
- Category
- C#
- Title
- convert generic to type c#
- Category
- C#
- Title
- ignore fakeiteasy
- Category
- C#
- Title
- json stringify c#
- Category
- C#
- Title
- how to make a game
- Category
- C#
- Title
- c# typeof
- Category
- C#
- Title
- input get button uibutton
- Category
- C#
- Title
- c# get desktop path
- Category
- C#
- Title
- c# inline if
- Category
- C#
- Title
- c# get all class properties
- Category
- C#
- Title
- c sharp if string equals
- Category
- C#
- Title
- ping with c#
- Category
- C#
- Title
- c# timespan
- Category
- C#
- Title
- letter at index of string c#
- Category
- C#
- Title
- c# thread sleep
- Category
- C#
- Title
- list clone - C#
- Category
- C#
- Title
- c# replace foreach with lambda
- Category
- C#
- Title
- convert string to boolean c#
- Category
- C#
- Title
- Unity how to put IEnumerator in update and loop once with yeild return new waitforseconds
- Category
- C#
- Title
- jumping with character controller unity
- Category
- C#
- Title
- and unity
- Category
- C#
- Title
- linq c# object except two lists
- Category
- C#
- Title
- C# webclient immitate browser
- Category
- C#
- Title
- how to clear console through script unity
- Category
- C#
- Title
- query associative table ef6
- Category
- C#
- Title
- how do i limit the amount of prefabs in unity using c# script
- Category
- C#
- Title
- check if network is available c#
- Category
- C#
- Title
- what is the and in c#
- Category
- C#
- Title
- c# enum.getvalues
- Category
- C#
- Title
- c# System.Resources.MissingManifestResourceException error
- Category
- C#
- Title
- c# odd even median
- Category
- C#
- Title
- c# access session in class
- Category
- C#
- Title
- convert word files to plain text c#
- Category
- C#
- Title
- c# string to memorystream
- Category
- C#
- Title
- when do i need to end a sentence with ; in c#
- Category
- C#
- Title
- windows form rounded corners
- Category
- C#
- Title
- c# get foreground window
- Category
- C#
- Title
- c# read all text from a file
- Category
- C#
- Title
- index in foreach c#
- Category
- C#
- Title
- asp.net c# set session timeout
- Category
- C#
- Title
- how to add a gameobject
- Category
- C#
- Title
- c# get enum in list
- Category
- C#