Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - BrysonGR

Pages: [1]
1
Support / Re: Scaling UI with anchors
« on: June 25, 2013, 10:12:31 pm »
Yeah, that'd be great. I'm looking into using 2D Toolkit for all my UI instead of NGUI, which I've used up 'til now. I don't need everything to be pixel-perfect, but definitely need anchors. :D

2
Support / Scaling UI with anchors
« on: June 25, 2013, 08:31:28 pm »
Hi,

I'm trying to set up a 2D Toolkit UI which uses anchors. From what I can gather from the docs, it looks like I need to use a tk2dCamera, which also means that 1 unit = 1 pixel. This means that all the controls (TextInput, BasicButton, etc.) need to be scaled up, right? What's the recommended way to do this? I just created a parent "UI" object with a scale of (400, 400, 400) and dropped controls into it.

I'm thinking this may not be the right solution because the TextInput control doesn't quite work right. The field length needs to be greatly increased to match the control's scale, but the field length gizmo doesn't scale right (it's way too long). Is this just a bug? Or is this a sign that I'm not approaching this the right way?

Basically: what is the proper way to build a scalable UI with anchors, based on the UI demo control prefabs?

Pages: [1]