hey guys, atm im trying to mod thsi motion blur script in unity… but i only know how to do it in Java, and this is in Cs. i know u shouldn’t use to diff languages in a game but i really would appreciate it if someone can help out.
All i want is to add extra blur to the Camera if i press key “1” but the number keypad on the left. i know how to do it in Java, but not in Cs.
void OnRenderImage (RenderTexture source, RenderTexture destination)
{
if (Input.GetKey (????????))
{
blurAmount = 0.8f;
}
else
{
blurAmount = 0.6f;
}
thanks 
I don’t think you needed our help for this:
function OnRenderImage(source, destination)
{
if (Input.GetKey (????????))
{
blurAmount = 0.8f;
}
else
{
blurAmount = 0.6f;
}
}
All I did was change the “void” to “function” (JS is dynamically typed, so there’s no need to set a function type), and removed the variable types for the same reason.[/code]
ahh i see, but now would i use the kaypad numder as a key becuase just putting if (Input.GetKey (Keypad 1))
doesnt work :
There is a section at the bottom of this page that talks about keypad numbers.
It ends up being this.
if (Input.GetKey("[1]"))
ohh thanks for that, ill give it a shot, and see how i go.
thanks for your helps guys