Questions tagged [unity3d-2dtools]

Use this tag if your question is about using Unity's built-in 2D features, like the Sprite type and the 2D physics engine, based on Box2D.

The 2D Tools refers to the collection of tools to make 2D applications.

Useful links


Related tags

492 questions
3
votes
2 answers

Check the Collision2D without a Rigidbody2D

So there are lots of squares (about 200-300) in my scene. They are moving a little, and they need not to cover each other. It's pretty hard for a computer to add Rigidbody2D to them. I tried to add BoxCollider2D and Mesh Colliders on each object and…
3
votes
1 answer

Unity Canvas Buttons gets tiny when Build

I am working with Unity 5, and when I add Canvas Button the button get smaller this is how it looks like before build Before Build to an Apk and after build on my Lg g3:
UnityNewb
  • 361
  • 1
  • 5
  • 17
3
votes
1 answer

Slow rotation down in Unity Animator

I have a simple rotation animation that spins an object on its axis. At the moment its spinning too quick and I want to slow it down, I've tried increasing the samples?? But I don't know that much about animation so I might be well off. How do I…
JGrn84
  • 750
  • 1
  • 9
  • 26
3
votes
1 answer

Simple rectangle in Unity3D

There's plenty of tutorials which explain how to add and manage image objects. But what if I want to add simple rectangle with plain white color? May I do it similar to adding 3D objects? I see no rectangle option under 2D Object in GameObject…
Lukis
  • 652
  • 7
  • 20
3
votes
1 answer

Unity 2D - How to play death animation prefab

I have created a prefab with animation from sprite sheet, which I want to be played when the Player dies. I checked if the prefab is working by dragging it in the Scene, and it is correctly playing every frame of the sprite sheet in a loop…
Borislav
  • 909
  • 3
  • 10
  • 25
3
votes
2 answers

Unity 3D. Child object is not changed

I'm java programmer and I'm new with Unity. I'm writing a grid that lays on a Plane object. The aim is to separate grid-based logic from Unity 3D coordinate system. Actually the game speaks in terms of grid positions, so I need a code that converts…
bw_dev
  • 775
  • 1
  • 7
  • 17
3
votes
1 answer

Using a Singleton in Unity3D

I'm currently attempting to use a Singleton as a global data structure for Task organization in a game I'm making in Unity. My Singleton class code is as follows: public class TaskManager : MonoBehaviour { private List Tasks; private…
Jestus
  • 623
  • 2
  • 9
  • 25
3
votes
3 answers

Recommended Approach to multiple colliders

I am have some difficulty with what is probably a very silly thing. I have an enemy gameobject that depending on where it is hit (collision) - either it, or the play dies. I think the simplest way to describe this is by using the classic Super Mario…
Zuiq Pazu
  • 285
  • 1
  • 4
  • 12
2
votes
2 answers

Using Unity EditorWindow to Create Animations from Spritesheet?

Currently I am working on a 2D game in Unity. I am working on a EditorWindow to slice an imported spritesheet and create animations from these sprites. Currently, I have the code to slice the spreadsheet functioning, detailed below for those…
2
votes
0 answers

Problem with calculating touch and gameObject positions on canvas (Screen Space- Camera Render mode)

all! I'm working with Unity UI elements. Until recently, my canvas was set to Render mode: Screen space - Overlay. I wrote up some code using touch.position to trigger specific events on my screen: I wanted some objects to appear whenever I would…
Vid Stropnik
  • 182
  • 10
2
votes
0 answers

Unity Mobile Controller in "2D Game Kit "?

I am new in unity . I am making 2D game for fun . I want to make its mobile version as well . I am using unity 2D game kit I did not found any mobile controller for this pack inside package . Anyone knows way how to make it work for mobile ? any…
2
votes
1 answer

Unity Physics2D.OverlapBox always returns false

I'm trying to use Physics2D.OverlapBox to check if a collider is underneath the mouse when it's being clicked. OverlapArea and OverlapCircle works, but OverlapBox doesn't, and I'm not sure why! Here's the code void Update () { if…
Andy
  • 357
  • 2
  • 17
2
votes
1 answer

how to linear translation smoothly between two game objects in unity

Actually i new in unity trying to learn Linear Translation smoothly.I use two cubes and trying to translate linear smoothly each other. public class LinearTrasnformation : MonoBehaviour { public GameObject cube1, cube2; // Use this…
Mohit Gandhi
  • 175
  • 1
  • 1
  • 6
2
votes
1 answer

Unity Tile Map. How to add scripts etc to Tile Palette tiles

Does anyone know how to add scripts etc to the tiles in the tile palette? I want to be able to paint tiles with tags already set and with scripts attached otherwise it is seems pretty much useless.
coolblue2000
  • 3,796
  • 10
  • 41
  • 62
2
votes
3 answers

How to move 2D Object with WASD in Unity

My code below only works for horizontal movement. Shouldn't the vertical movement be working too? I'm just starting out with basic 2D Unity programming: public class Player : MonoBehaviour { //These fields will be exposed to Unity so the dev…
5120bee
  • 689
  • 1
  • 14
  • 36