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
20
votes
6 answers

How to load an image from URL with Unity?

Please save me from going crazy. No matter how many times I google, I always end up with (usually deprecated) versions of the following code: IEnumerator setImage(string url) { Texture2D texture =…
Michel Jung
  • 2,966
  • 6
  • 31
  • 51
11
votes
2 answers

Unity scrollview can't scroll to the end

I have a scrollview.Horizontal and vertical scrollbars are removed because it is ugly and I have space constraint. When I populate items into content of the scrollview as shown in the image I can't scroll. The view is moving but doesn't…
batuman
  • 7,066
  • 26
  • 107
  • 229
11
votes
5 answers

How to make a sprite clickable?

I have googled plenty and only come up with really complicated methods of doing it. I also found the function OnMouseDown() but I haven't been able to make it work. At the moment the sprite activates when you tap anywhere on screen. EDIT - Yes it…
MIke
  • 283
  • 3
  • 4
  • 13
11
votes
3 answers

Unity 2D vs 3D differences

What are the main differences between Unity 2D project and unity 3D project! Does unity render faster 2D projects than 3D? Or does 2D prefabs/textures require less memory than 3D? Is there an option for creating 2D meshes in 2D projects? Thank you…
Vali Rosca
  • 479
  • 2
  • 4
  • 18
10
votes
3 answers

Unity multiple collider on same object

I am using several box colliders on the same GameObject, the question is, is it possible to refer to each of those colliders separately using gameObject.getComponent().enabled = false; Keep in mind that I have few colliders and I want some of them…
Metaldream
  • 125
  • 1
  • 1
  • 9
10
votes
2 answers

Manually edit Unity3D collider coordinates?

Trying to create a 2D game where I need a 2D polygon collider with exact symmetry, so I'd like to set the coordinates by hand/numerically, rather than using a mouse. How can this be done? I suppose the game could adjust the coordinates at start-up,…
Kjell Rilbe
  • 1,331
  • 14
  • 39
10
votes
1 answer

How can i create a 2D 'curve' collider

I'm trying to search an smart way to create curves like the next one (using Unity3d 2D part (without using mesh collider))) , but i didn't found one Any help would be appreciated.
A.Quiroga
  • 5,704
  • 6
  • 37
  • 58
9
votes
2 answers

Positioning UI elements with Anchor Presets via code

When we position UI elements in Unity, we fix the position from Anchor Presets, so that it's position is placed correctly on the canvas. We select top, middle, bottom, stretch and the blue color dot. How can I do the same thing if I create UI…
batuman
  • 7,066
  • 26
  • 107
  • 229
9
votes
3 answers

Can I mix 2d and 3d scenes in game

I am totally new to Unity and I looked some tutorials and I want to make game which has 3 scenes which are 2d and 2 scenes which are 2d. Is this possible to do or I have to treat all as 3d scenes ? ( I read some books but didn't find or notice…
PaolaJ.
  • 10,872
  • 22
  • 73
  • 111
9
votes
3 answers

How to add accessibility to Unity3d for iOS

Is there any way to communicate with iOS's VoiceOver accessibility native support via Unity3d? We have an application that needs to be accessible, and we are not sure how to go about it. Creating our own custom VoiceOver is not possible since we…
abritez
  • 2,616
  • 3
  • 29
  • 36
8
votes
4 answers

Camera.main is null when performing raycast

Code that generates an error: void Update() { if (Input.touchCount > 0) { RaycastHit2D hit = Physics2D.Raycast(Camera.main.ScreenToWorldPoint(Input.GetTouch(0).position), Vector2.zero); if (hit && hit.collider != null &&…
Sharpy
  • 143
  • 2
  • 8
8
votes
2 answers

Develop 2D game Inside Canvas Scaler

I'm new in Unity and i've realized that it's difficult do a multi resolution 2d game on unity without paid 3rd plugins available on Asset Store. I've made some tests and i'm able to do multi resolution support in this way: 1- Put everything from UI…
mistic
  • 275
  • 5
  • 15
8
votes
1 answer

The weird iOS8 + Unity3D hiccup

We've run into a strange problem when using Unity3D and iOS8. After about 1 minute there is a large (sometime a bit smaller) hiccup and we can't figure out why. Garbage collection? We spent a few days trying to find out what the problem was and…
dale
  • 760
  • 5
  • 11
7
votes
2 answers

Unity3D Sprite ... but single sided?

Unity's excellent Sprites (Unity's excellent new sprites), among other worthy advantages, are in fact double-sided. In a 2D or 3D use case, you can flip the little bastards around and still see them from behind - they are rendered from both sides. I…
Fattie
  • 27,874
  • 70
  • 431
  • 719
7
votes
4 answers

Password InputField Censored (****) - Logging and Registration

I am planning to do logging and registration. But I have a problem. I can't make the password InputField became like ***** (censored). And maybe it wouldn't affect your answers but my game will be on the android platform. Thank you.
Atilla Gundogan
  • 101
  • 1
  • 1
  • 8
1
2 3
32 33