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.


Topics - cesarpo

Pages: [1]
1
Support / Make UI work with Physics2d
« on: February 24, 2014, 05:40:36 am »
I just realized that the UI system does not work with the new BoxCollider2D, which means that the classic BoxCollider has to be used,  which also means that unity has to include the Physix engine along with Box2D.

Mixing the 2 types of colliders will make unity run both engines at the same time if I'm not mistaken.

I'm worried about performance and file size, should I? HOw much difficult would be to update the tk2dUiManager to use the 2D engine?

update:

I added this to the tk2dUiManager, instead of the 3d code, seems to be working:

Code: [Select]

var hit = Physics2D.Raycast(ray.origin, ray.direction, 10f);

if(hit.collider != null)
{
return hit.collider.GetComponent<tk2dUIItem>();
}

Will this break some functionality somewhere?


2
Support / Dicing + Tiling
« on: July 28, 2013, 07:56:52 am »
Do they work together?

I'm on 2.0 and using a sprite configured as Diced in the editor, and as a Tiled Sprite on the scene, it only shows some random parts, the rest being transparent.

3
Support / Some performance questions
« on: July 07, 2013, 09:49:22 pm »
I'm finishing the r+d phase of my 2d game for mobile platforms, and I'm about to start real development, but have some technical questions :

1- For doing an on-screen virtual joystick, what would have better performance? A GUITexture with its hitTest methods, or using a tk2dUIItem? (I'm worried about all the screenpoint /raycasting /collider overhead that the tk2dUI does)

2- For a static background, what would be better? The unity mobile skybox, or a big tk2d Sprite?

3- What shader should I choose for my sprites? Should I use the default ones? Is there any documentation about the diferences between them? I see a lot of shaders in the Shaders folder, but I'm totally ignorant about this low level stuff.


Thanks in advance!


Pages: [1]