1
NGUI 3 Support / Re: UI Text List cuts off text when loading from text resource.
« on: April 02, 2015, 04:50:15 PM »
Here is how to replicate it:
1. Create new project with NGUI and open the Chat Area scene (Example 12).
2. Create the Resources folder and drop the attached .txt file in it. This will be a text resource.
3. Modify the ChatInput.cs script. Replace everything under OnSubmit() with:
TextAsset txt = (TextAsset)Resources.Load("C8 - root - undefined", typeof(TextAsset));
textList.Add(txt.text);
4. When you run the project and hit Enter on the Input Edit Field you will see how the text is cut off. It ends with "is coming fr", see attached screenshot. When you scroll up and down it doesn't show as well. The only thing you can do is use the resize thing at the bottom right and then it works.
1. Create new project with NGUI and open the Chat Area scene (Example 12).
2. Create the Resources folder and drop the attached .txt file in it. This will be a text resource.
3. Modify the ChatInput.cs script. Replace everything under OnSubmit() with:
TextAsset txt = (TextAsset)Resources.Load("C8 - root - undefined", typeof(TextAsset));
textList.Add(txt.text);
4. When you run the project and hit Enter on the Input Edit Field you will see how the text is cut off. It ends with "is coming fr", see attached screenshot. When you scroll up and down it doesn't show as well. The only thing you can do is use the resize thing at the bottom right and then it works.