Skip to main content


Showing posts from July, 2014

Joystick for touch devices in unity part 2

Hi guys, i modified my previous joystick script that i posted here link. This time i limited the area of joystick, and also customised it a little for better controls. You can use this type of joystick in first person and third person games.
I used left side of the screen for rotation and jumping,  and right side of the screen for movement, also gui for the joystick is designed like, it will adjust automatically in all type of resolutions (only in landscape mode).

I am not going to post any script in here but you can download the project file from the below given link. If you guys face any issue or want some modification, please mention through comments.

Simple Double Sided Shader with lighting in unity

To get double sided shader you just need to add one line that is CULL OFF, thats it!

this is standard unity 5 shader.

Shader"Custom/DoubleSided2" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
SubShader {
Tags { "RenderType"="Opaque" }
//PhysicallybasedStandardlightingmodel, andenableshadowsonalllighttypes

//Useshadermodel3.0target, togetnicerlookinglighting


structInput {