screen alignment in andriod and ios

need to align the screen if the character reach the right and left corner, for mobile deveices like andriod and ios.

its a camera system .use camera to rotate.use transform.eulersAngle

can you give sample for moving forward a cube in android with screen allignment

I really have no idea what you’re trying to achieve. Try to explan it a little bit better. Otherwhise everyone will just have to guess :wink:

btw: wrong forum section

i need code for moving cube forward in andiroid phones

use input.mouse button method it will work on android:

if(Input.GetMouseButtonDown(0))
	{
		transform.Translate(Vector3.forward*Time.deltaTime);
	}

ok i got it finnaly…

Maybe do some of the Learn tutorials and read some docs. That’s a quick way to get up to speed.