Hello, i’m asked to make a module that takes a string, and adds it on an image, like captions. The goal here is to put text on different images of a gallery depending on the author or language chosen by the user. Does unity have a method/function to do this?
While you can certainly access the pixel array of an image, I believe it would be far easier to implement with a Text Mesh object:
http://unity3d.com/support/documentation/Components/class-TextMesh.html
Personally, I would approach this by using Unity’s GUI system.
I would draw a label with text either below, next to, or on top of the texture.
http://unity3d.com/support/documentation/ScriptReference/GUI.Label.html
If you really have to create a texture from your text, that’s a different story.