activate other objects inside a different objects script
Is there a way to activate an object inside another objects script by using SetActive? I have posted questions about this before but have got replies saying the question wasn't very clear so this is as...
View ArticleHow to chose witch collider2d hits first ?
In my game every time that the player hits an especific collider the collider becomes the players parent.But some times this collider are in the same x and y axes as an other collider, and its sems...
View ArticleHow to add ParticleSystem in point where CollisionTrigger2D touch another?
How to add ParticleSystem in point where CollisionTrigger touch another? i have a 2dCollision Trigger and when touch another collision need to create a particle system in the point where its touching....
View ArticleCollider outline from 2d map
So I have procedurally generated maps that creates maps like this, it outputs to PNG: ![alt text][1] [1]: /storage/temp/34902-map.png So i want to import this into Unity and create a 2D collider...
View ArticleHow to make total internal reflection effect in 2d?
Hello guys I want to make an effect in 2d, like I have a two sprites one up and one down, I was using particle system to make the particles collide with the sprite , but it seem we can't detect...
View ArticleHow do I find the two vertices of a collided edge on a PolygonCollider2D?
Hey guys, I'm currently working on some destructible terrain for a 2D game, and I'm trying to make a relatively low-cost way to deform my polygon colliders. At present, I'm using a raycast as a bullet...
View ArticleReturning a Box Collider to it's orginal position
I'm creating a 2D game that requires a player to slide under certain obstacles, I've got the animation to play at the correct time what I'm struggling with is actually making sure the models box...
View Article2D Colliders and spawners check
I'm have no idea what can I may missing for this setting: have 2 sprites, each one with the respective 2d colliders and 2d rigid bodies. when sprite A goes to sprite B, sprite B will be deleted, to do...
View ArticleCollider2Ds acting glitchy
So I have this wierd problem. Whenever my player object, which is using a collider2D and a rigidbody2D, collides with a gameobject that is using a collider2D (no rigidbody2D because these objects are...
View Articlehow to find the width of a parent gameobject without using bounds?
I want to instantiate a group of platforms so that they are exactly next to each other. so i made a group of 2-3 platforms and put them into a parent gameobject.now i need to find the width of the...
View ArticleProblem with multiple 2D triggers
I have a scene where there is a large 2D trigger (box collider 2D), that has another, smaller, 2D trigger "inside" of it. I quoted "inside" because they are two separate game objects, not parented or...
View ArticleCan't create an Collider2D array?
I have been trying to create an array of collider2D so i can disable all the respective colliders of an children's object. But this error pops-up and i have tried to figured out what's wrong but...
View Articleproblem detecting collider2D
my box collider does'nt detect any collision with my plattformas here's my code void OnTriggerEnter2D(Collider2D objeto) { if(objeto.tag == "plataforma") { Debug.Log("debe destruir");...
View ArticleCollider2D and Z-Axis
Just to make sure: Collider2D will never consider z axis, right? in other words if i have a background in z axis = 10 and an object in z axis -10, both with theirs colliders and rigidbodies... so...
View Articleon triggerStay2D can't modify variable on collider object
Hi all Can't make this trigger to work i don't get any error from unity and the debug log works fine but the assignment of the new value to the player stats script doesn't work and can'0t understand...
View Articleupdating collider when sprite changes
in my game i have a sprite that has animations the problem is that the polygon collider i have doesnt change when the sprite changes, from reading about i realized that id have to destroy and recreate...
View ArticleEasy way to prevent collider2d from scaling down with gameObject
I have the following situation: I click on a button it scales down a bit and then when I release if the click previously was on the end of the button it doesn't find it as a click afterwards obviously...
View ArticleAfter 5.0 update, 2D Polygon Colliders are not colliding with each other
Is this a bug? After updating my characters are falling through the platforms. Both characters and platforms use Polygon Colliders for collision. Nothing much else changed. So to test it I made a new...
View ArticleHow to pass a pointerclick event on to the next collider ?
I have multiple 2d box colliders on top of each other. I use the iPointerClickHandler interface to intercept the click and this works fine. The object that is render on top of the other will receive...
View ArticleHow to make "check collider" for 3 another colliders?
![Кealization][1] [1]: http://i.imgur.com/CAX1ZkS.png Here's the my 4 colliders. I want to make *checkLock* (high narrow collider) like a check collider for 3 another colliders (first1, second2,...
View Article