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 - sniperjp02

Pages: [1]
1
Support / Re: Collider Issue in 4.3
« on: November 28, 2013, 05:45:41 pm »
Hello unikron,

I was unable to reproduce this in a clean project.

After I added the 2D ColliderGen plugin to the project I was able to reproduce it.
In my other project I still had 2D ColliderGen added but was not using it.
I will remove it from the project for now and contact support for that plugin.

Thanks for the help,
Jacob

2
Support / Re: Collider Issue in 4.3
« on: November 27, 2013, 05:10:57 am »
Ok, so I seemed to have found a reproducible case for the collider duplication issue.

Steps:

1. Create a Sprite Collection.
2. Add texture (I use point filter, 2D Physics, and have 1x and 2x sprites for settings).
   2a. Create polygon collider and commit.
3. Create a new tk2d sprite using the new sprite.
4. Rename and add a 2D Rigidbody and create a prefab from the object.
------Up to here everything is fine------
5. Create new texture in Photoshop and overwrite the texture and @2x version in the asset folder (with Unity open).
6. Open the Sprite Collection and click commit, the collider will be duped at this point for all sprites in this collection that are in the scene.

Normally I would edit the collider in step 6 but I found that is not necessary to reproduce this behavior.

I assume this behavior is not expected.
For now I will try to avoid editing textures once they are in the project.

Please let me know if the steps I take are not "standard" or if I should be doing something else.

Thanks,
Jacob


3
Support / Re: Collider Issue in 4.3
« on: November 27, 2013, 04:31:14 am »
Thanks for the reply unikron.

I am using 2D physics and this project was originally created in 4.3 with 2D presets selected.

1. I was originally using the 2D ColliderGen asset to auto-trace the sprites and then hand tweaked them. After seeing this issue a few times I stopped using it to see if it would happened again, which it has. I am creating the polygon colliders by hand and using custom box colliders on simpler objects now. I am pretty sure only the polygon colliders are being duped.
2. Yes I am changing the textures externally and then opening the sprite collection which contains the changed texture and editing the collider. Sometimes I change the texture while the project is open in Unity and other times Unity was closed.

Should I only edit textures with Unity open?
Have you seen anything like this before or do you think it is an issue with 4.3?

I will try to find a reproducible case if I can.

Thanks again,
Jacob

4
Support / Collider Issue in 4.3
« on: November 26, 2013, 05:18:15 am »
Hello all,

I am using 2D Toolkit 2.3 with Unity 4.3 and I keep running into an odd issue.
Sometimes when I edit a texture I see 2 different types of "weirdness".

I am using polygon colliders for most game objects and box colliders for simpler objects.
I see these issues when I edit a texture externally (update graphic in Illustrator and export using Photoshop to the Asset folder).

I would like to know the proper process for updating textures as I see the following:

1. If I change the dimensions of the original texture the sprite will have the new texture but the collider will still have the old dimensions. When I edit the collider in the collection everything looks good. When I go back to the editor I can see the collider does not indeed match the dimensions of the sprite.

2. I randomly see huge performance drops and after investigating I found that for some reason my game objects will randomly duplicate the colliders attached to them. Sometimes a single object will have over 30 colliders.

I appreciate any insight on these problems and if I am doing something wrong I could really use some advice on what the proper process is. This has happened at least 3 times now and it is very time consuming to repair the state of my objects.

Thanks,
Jacob

Pages: [1]