I want to make a little plane where the user can sign in an ipad(ios) app.
And then i need to send this signature to the server ( as texture, svg, json or w/e ).
I guess i can write a script for that? Maybe a shader?
I also need it to work in Unity4.5.5.
*Edit: I tried SetPixel but it draws dots and not constant lines, so this is not what i need.
Try LineRenderer component.
Here’s my old simple test project, I think this is what you need.
To save that texture and upload it you need to add couple lines of code (please see Texture2D.EncodeToPNG example).
P. S.
If you want to use it for mobile devices I recommend you to restrict drawable area (make it smaller, don’t use whole screen) in order to avoid performance issues.
My solution isn’t perfect, cause it’s a bit slow and there may be much better way to do this, but still, it works and I hope it will help you or at least will give you a starting point;)