Quantcast
Channel: Latest Questions on Unity Answers
Browsing all 171066 articles
Browse latest View live
↧

disable multi touch on specific screen area

I'm currently developing unity 2d platformer game for android. Then, i'm implement touch control with screen position detection. ![alt text][1] as you see, i split the screen to 3 pieces : 1 for move...

View Article


Rigidbody character and Update() function

So in official Unity's 2D Character Controllers tutorial ( http://unity3d.com/learn/tutorials/modules/beginner/2d/2d-controllers ) they made their character out of a physics2D rigidbody. That's kind of...

View Article


Character getting stuck on walls

Hey, I have a weird issue where if I jump and hold the movement direction key of the direction I'm jumping in - the character just sticks to the wall. Only when I let go of the movement control, my...

View Article

Camera movement

My question about smooth camera movement. When clicking on object in the scene the camera will go to pre-defined for objects view. Other Problem is Every object has different camera view. I won't make...

View Article

SpriteManager Odd Uv Vectors

This has had me stumped for awhile. //Values you need to know below: X, Y, Width, Height _sm.AddSprite(ignore, ignore, ignore, 0, 129, 193, 64, ignore); This code is for a sprite at 0,64 (Or UV: 0,128)...

View Article


GUI help || Information

If I wanted to make a simple gui this (see below) what would I use? Gui style? Texture? Can someone point me in the direction to learn please? Thanks. ![alt text][1] [1]:...

View Article

Possible shader interference when updating matrix

Greetings, I'm currently facing a problem regarding updating values of several arrays inside a list. The basic setup is the following: a List containing 2 arrays each comprised of 16 float numbers....

View Article

Compound Colliders not working in 2D Unity?

Hello everyone! I've got issues regarding 2D compound colliders. I tried really hard to find an answer before posting this so I hope it's not a repost. So, I've got a scene with a Shape2D falling on a...

View Article


Advice for perfomance and efficency

I wonder if experienced game developers give advices in respect of the topic. I.e. the most common newbee's mistakes that have negative impact on game perfomance. Especially for 2D games, 2D physics...

View Article


Table Counting

Hello, and thanks in advance for reading. I'm making an options menu for my game, and following suit to KSP's system for screen resolution, I make a table of all supported resolutions and use a slider...

View Article

How to move a character in a curve like in Sonic?

I am just starting Unity and trying to make a simple 2d game. I want my character to move across the curved platform like in old Sonic. I use C# but JavaScript will be very helpful too. Thanks in...

View Article

How to Load Dynamic Form Based on User Choice Selection

Hello Developers, Please have a look at the snapshot below for getting idea what i wanted. ![alt text][1] [1]: /storage/temp/22857-need+help.jpg I want to create form using unity GUI where there will...

View Article

No Button texture in scroll view

I have a scroll view in my application, and with a predefined button texture, it loads fine. I am using the Facebook SDK to get a profile picture and insert it into my scrollview as a button. When I...

View Article


How to make an animation like angry bots demo?

I have found the player animation in angry bots demo is very fantastic, both upperBody and lowerBody can have a rotation, but I was confused about how to keep the animation correct when the relative...

View Article

How would you create an animator controller prefab?

I'm currently working on a 2D top-down game. I'm using an animator controller to animate the Sprite property of my Sprite Renderer on some different characters. I was hoping to create a single animator...

View Article


Problem with GetComponent!

ship1_select using UnityEngine; using System.Collections; public class ship1_select : MonoBehaviour { public bool isSelected = false; // Use this for initialization void OnMouseOver() { Vector3...

View Article

Mathf.Lerp not working

Hi, I have been having this issue for a while now and finally decided to make a question about this since it's happenning in a lot of situations and not just only this one, the thing is, I can't get...

View Article


Unsure on how to make certain animations play

so i have a ball and 4 animations, and im trying to make a certain animation play if he collides with the up down front or back raycasts but it doesnt seem to work. it just constantly plays the...

View Article

array c# sending info from one script into another scripts array.

Hiya, so here's my problem. I already know how to make an array, adjust its size, put different stuff in it and access them inside a single script. (making navigational locations for enemy's so they...

View Article

How to get Vector3.down in world space?

Hi, how can i get Vector.down in World Space? I have tried with -transform.up but it's still local. Here's my current code: Vector3 fwd = transform.TransformDirection(Vector3.down); RaycastHit hit;...

View Article
Browsing all 171066 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>