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 - 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 / Re: Problem with Static Sprite Batcher on Windows Phone 8
« on: August 17, 2013, 05:30:05 am »
Is there any fix for this? Besides leaving the batcher uncommited.

3
Support / Re: Landscape Orientation Problem - WP8 Project
« on: August 17, 2013, 04:40:21 am »
 I had the same problem. and adding this code fixes the error, but still the tk2dCamera responds to the Portrait orientation, how can I do to only support Landscape modes?

edit

I had to edit the MainPage.xaml and set the SupportedOrientations="Landscape" attribute. This seems to be independent of the player configuration in the project settings :/

Code: [Select]
    Foreground="{StaticResource PhoneForegroundBrush}" Orientation="Landscape" SupportedOrientations="Landscape" BackKeyPress="PhoneApplicationPage_BackKeyPress" OrientationChanged="PhoneApplicationPage_OrientationChanged">

4
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.

5
Support / Re: Some performance questions
« on: July 09, 2013, 02:47:04 am »
Thanks for the answers!

6
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!


7
Releases / Re: 2D Toolkit UI 1.0 Beta 6
« on: July 01, 2013, 04:06:55 am »
Hey, how do I know which version of the toolkit I'm actually using? Is there any file indicating this?

8
Releases / Re: 2D Toolkit UI 1.0 Beta 6
« on: June 27, 2013, 04:06:59 am »
I also need something like a  OnFocus event for keyboard/gamepad only builds, more exactly the recently released ouya.


What do you think would be the best strategy to achieve this?

Pages: [1]