- Home /
Write text in image from the app ?
Hi,
I have somehow managed to take pictures from the iPhone camera in the App. Now what i want is the picture that is taken to be able to write on. For e.g. like I took a picture from the iPhone and now on the top of it i am going to write text and also change the size of the text. is this possible in Unity ?
Like in the image below
Nope. It isn't possible. That is actually Unity's one great weakness, text… ;)
But seriously, I am not sure what you are asking. Are you asking how to get the image into the game or how to write text to the screen? Both?
Sorry for my english. I want to make an app which takes pictures then the same picture u took will be edited by adding only text on the image. and that text should be resized.
Are you wanting to embed the text in the actual image pixels or just overlay text on top of the image?
Yes ! like write text on the top of the picture. Like in photoshop when u get the image and on the top of the image u write text and it gives u the result like the above image. -- Over lay on the top of the image --
Answer by cagezero · May 07, 2013 at 08:48 PM
There are multiple ways of accomplishing this. Try starting by researching these GUI classes:
http://docs.unity3d.com/Documentation/ScriptReference/GUI.Label.html
http://docs.unity3d.com/Documentation/ScriptReference/GUIStyle.html
http://docs.unity3d.com/Documentation/Components/class-GUISkin.html
This tutorial might also help:
http://www.youtube.com/watch?v=PySRiqMK7b4
You might also be interested in this script originally posted by @Berenger:
Your answer
Follow this Question
Related Questions
UI text vs. moving camera 1 Answer
UI behavior on resolution change 1 Answer
How can I get the image camera for ios? 0 Answers
Mobile Device Video Camera 1 Answer