Unity is a cross-platform game creation system that focuses on easy art pipeline process. It consists of a game engine and an integrated development environment. The game engine's scripting is built on Mono.

learn more… | top users | synonyms (1)

2
votes
2answers
69 views

Unity2D: Rendering multiple sprites as a single one

I'm creating NPCs in Unity 2D using C#, and I have 16x16 sprites for body, helmet, clothes and weapon. All these have a tile set which has been split in unity. I'd like to be able to render one of ...
0
votes
2answers
81 views

WaitforSeconds() not working as it should

I searched for using WaitforSeconds and used as it was mentioned(using a return type of IEnumeration and using coroutines instead of update). but it did not work. Initially it showed Waitfor Seconds ...
0
votes
0answers
59 views

Transition Idle to Running not smooth

http://gyazo.com/441ba7f4962cf1470692b437b8ae47a4 Hello, I'm following the unity tutorial for 3D character movement and, I'm trying to make the transition to idle and running but for some reason the ...
0
votes
0answers
42 views

Bad / clipped pixel rendering of a 2d sprite

I'm testing things in unity but I've run into this problem and i can't solve it... I have the following configuration: Images of the problem: As we can see in the problem images the pixels ...
0
votes
2answers
49 views

Optimization for lots of UV coordinates update for tilemap animation

In my game, I procedurally generate tile map mesh and modify it when travelling around the "world". Each tile is a quad. So they each, have their own UV points. (Obviously) I am using Unity for this, ...
0
votes
1answer
35 views

What are the steps in creating app icon for ios?

I have completed developing my game (iOS) and now preparing it to submit to the appstore. However, i have some confusion regarding app icon. 1>In Unity build->player settings, there are various sizes ...
0
votes
0answers
23 views

Prefabs and materials not working on another system

Our problem seems like rare, as I did research and none find to answer my question. The problem is, I have created prefabs ,materials on my system and then exported it to my partner's System. Now ...
1
vote
1answer
108 views

Unity 2D Graphics Optimization For Mobile Devices

I want some advices on how to create graphical assets for mobile devices so that the game will have a good performance and not lag on mobile devices. I had 3 issues with my games and that is they ...
0
votes
1answer
51 views

Touchscript: multiple overlapping colliders

Im building a tower defense game on unity and would like to allow the player to pan the camera on a large map. I am using touchscript to handle the touches. I made a testing project with the ...
0
votes
1answer
72 views

Is it possible to load asset bundle dependencies manually in Unity 5.0?

Is it possible to tell Unity to not load asset bundle dependencies automatically so they can be loaded manually. If so, how can this be done?
-1
votes
1answer
30 views

Camera rolls instead of looking up and down

I got a small script from the official Unity forum which is: public class MouseRotationUpDown : MonoBehaviour { public float RotationSpeed = 5; void Update () { ...
0
votes
1answer
59 views

How can an asset bundle's resources be destroyed after destroying the compressed bundle data?

Using: AssetBundle.Unload( false ); Will clear the compressed asset bundle data. This, unfortunately, destroys the bundle object as well, which means nothing is keeping track of the loaded ...
1
vote
1answer
54 views

Why is Unity 2D Alpha-Blurring my pixel sprite?

So I have just brought in a place holder block for the ground in unity 2D, and it's 16 by 16 pixel image, and for some reason unity is automatically blurring the image. So I was wondering if there was ...
0
votes
1answer
36 views

Performance overhead on Non-POT Texture in POT Atlas

Using atlas, we can reduce memory and draw call. And the atlas is usally POT(Power of Two) Texture. And I know non-POT texture have a lot of GPU and memory performance overhead. (link) I have many ...
0
votes
1answer
55 views

roll over camera! [closed]

I'm making a prototype. I used the Unity RollerBall, prefab, but I need to be able to attach a camera to it and keep it steady. I need to have it follow the ball as it rolls, but have the camera roll ...
2
votes
1answer
78 views

Determine if AI can traverse a given spline

I have some AI Agents that I want to navigate along a spline. The agents have a speed and a maximum turning radius. For some splines the curvature is too tight for the AI agents to navigate around and ...
2
votes
1answer
165 views

How does Unity load asset bundle dependencies and how can they be accessed?

Loading assets from an asset bundle is done explicitly. You give the bundle the name of the asset to load, then it returns it( either now or later. ) However, loading dependencies is done completely ...
0
votes
1answer
48 views

How do I have different colliders against different objects? Unity

Say for example I have a ball, I want the sphere collider to be a certain radius when it comes into contact with one material (material A in diagram) and a different size when it comes into contact ...
0
votes
1answer
44 views

An object reference is required to access non-static member UnityEngine.Material.GetTextureOffset(string)

I am watching a tutorial where it seem to work. But in my case, I am getting this error. I get it that non-static members have to have an object. But, I don't know much about how to fix this error. ...
-1
votes
1answer
72 views

Egg splatter effect

We are working on game where player will throw eggs at each other, I would like to know how can we implement Egg splatter effect after egg hit other player? Thanks.
1
vote
0answers
91 views

Gradient fill color on circular sprite

I have a white circle sprite. I know how to change its color to a solid fill color. using GetComponent<Renderer>().material.color. But how would I give it a gradient fill color. I've been ...
0
votes
1answer
62 views

Restricting my horizontal slash attack

I've been working on making this slash attack for my character in the unity engine. The whole point to this script is to put the damage range in sync with the slashing animation. The slash is ...
0
votes
1answer
22 views

unity onCollisionEnter does not work

I know this question has been asked several times but none of the answers solved my problem. I made an sphere and gave it rigidbody. then I draged the sphere on to a new made prefab. on mouse-click ...
0
votes
1answer
58 views

Unity Quality Reduction only reduces my player sprite quality

I created a small map in tiled then imported it into Unity. A small sprite character is controlled by the player to roam about the map. I am experimenting with this for University and wanted to see ...
0
votes
1answer
61 views

Why isn't OnTriggerExit working?

I have a price of code that looks like this: void OnTriggerExit() { Debug.Log("Object leaved trigger"); } But when I move an object that is colliding with the trigger by script it doesn't print to ...
1
vote
2answers
100 views

How to freeze rotation with a Rigidbody 2D? [closed]

So I am looking to freeze rotation in the Y axis on a Rigidbody 2D. I'm not sure how to set this in my code. This is what I have so far, can you point out my errors? public class PlayerMovement : ...
0
votes
2answers
119 views

Unity procedural TileMap generation without creating gameobject per tile

I've been searching all over the internet to find a efficient way to create procedural tilemap without creating a gameobject per each tile. There is none, or simply i couldn't find it, because i ...
-5
votes
1answer
64 views

Is it enough to read manuals? [closed]

I want to develop games with Blender and Unity. I don't see any good books out there and so I'm considering reading the manuals of both the software. Should reading the manuals be enough if you're ...
1
vote
2answers
433 views

Testing Unity 2D Physics

I am looking to push the 2D physics in Unity to the extent where when so much is going on that there becomes noticeable lag in a game. This is for testing purposes, so that when so much is going on ...
0
votes
1answer
62 views

Unity Transform.Position not returning expected position

So in my scene hierarchy, I have an object laid out like so; -Level1 --Level2 ---Level3 ----Level4 My script is attached to the Level1 object. When I try to find the transform.position of Level4 by ...
0
votes
1answer
39 views

Texture doesn't scale and repeat

I wrote the script for automatic repetition of texture background. To save it I typed Cmd+S. I dragged and dropped the script to Background in Hierarchy. When hit play button the texture doesn't scale ...
-1
votes
1answer
42 views

Serialization is not saving high score

I wanted to avoid using playerprefs because they are easy to edit. So, I went with Serialization. Here is my main class that does all the scorekeeping: public class scoreKeeper : MonoBehaviour { ...
1
vote
1answer
41 views

Is my collision-free location script working?

I've recently been learning C# and I wanted to take one of my 2D tutorials to Unity. I reached a step where I need to spawn my new sprite into a collision free location. I've followed direction - ...
0
votes
1answer
50 views

How can I increase the speed and frequency of a spawn?

I'm using the official Unity tutorial for the Space Shooter game, and I'm at the part where the ability to spawn a set amount of hazards in a wave at a certain delay is introduced. I want to make it ...
2
votes
1answer
558 views

How do I make the host work in UNet?

According to the "High Level API" documentation, unless I misread something, a Host "just" runs both as a Server and as a Client, so much that it would require no special support, i.e. it should run ...
1
vote
0answers
35 views

Is there a way to build asset bundle that exclude texture2d from an image?

In unity 4.x, I can archive this because I can select my resource type directly as Sprite variable before putting it into the bundle via BuildAssetBundle. However, in Unity 5.x, I need to put the name ...
-1
votes
1answer
52 views

Why is this unity camera moving in weird directions?

I have the following script public class CameraScript : MonoBehaviour { public bool AllowZoom; public float zoom; public float Speed; Transform board; void Start(){ ...
2
votes
0answers
69 views

Creating Scenes Programmatically From A Deployed Build in Unity

This is somewhat of an extension to this question: http://answers.unity3d.com/questions/513801/programatically-creating-entire-unity-games.html I have a client who would like to create an entire game ...
1
vote
1answer
12 views

Unity: Can't access repeatDelay from StandaloneInputModule?

I have a very specific problem. I'm trying to change the repeatDelay variable within my StandaloneInputModule, but it's not coming up as a variable. All of the other variables come up when I use ...
1
vote
2answers
272 views

What's the difference between Destroy() and SetActive(false)?

I read about both methods in Unity and wanted to ask about which was the best in efficiency : destroying the object or deactivating it. What is the performance difference?
2
votes
1answer
284 views

Why will my server not execute a command sent by the client in Unity 5.1?

I'm working on a very simple/basic client-server networking program, the basis of a future game I hope to create. Now the client program/project DOES successfully connect with the 'server ...
2
votes
1answer
53 views

Unity C# Object Scaling when parenting by script

How do I make it so an object doesn't scale with another object that I parented it with by script? If anyone knows how to get around this I would really appreciate it. This is the part of the script ...
0
votes
1answer
24 views

Resources.Load doesn't grab values of my child class

I have a parent class Unit, and child classes melee unit/ranged unit. The parent class holds uninitialized fields such as health, damage, etc. the child class sets the values of these fields in an ...
1
vote
0answers
25 views

Unity: Finding out where OnSelect comes from

The new UI EventSystem method OnSelect is called from a number of different sources. One is when the Selectable is selected by using the arrow keys to navigate. Another is when clicking on the ...
1
vote
2answers
318 views

How do I Sync data from client to server?

I'm trying to Sync data from the client to the server using the new Unity Networking, and I'm failing for some reason. I've set up a prefab with a NetworkIdentity component with the attribute Local ...
4
votes
1answer
125 views

Convert large range of numbers to a smaller scale

What is a good formula to use in order to relate two different scale distances to each other? For example, I have a camera that can have a minimum size of 2 and a maximum of 10. I would like the ...
1
vote
1answer
88 views

How to create gui image with script

So I've been fiddling around with the new UI system recently -- and one problem I have is adding images of my sprites to the ui. I know I can create a prefab of an image gameobject with the sprite ...
2
votes
1answer
52 views

GetButtonDown for Unity keyboard UI navigation?

By default, Unity's keyboard navigation for buttons seems to check for GetButton rather than GetButtonDown--if a menu has 5 items and I hold the down arrow, it'll scroll very quickly to the bottom. ...
2
votes
1answer
83 views

2D Camera sizing and movement

Apologies if this is a basic question, or been asked a 1,000 times in the past... I'm new to Unity, and having problems understanding some of the basics to do with 2D cameras (orthographic), and ...
1
vote
0answers
35 views

Unity: OnGUI streamlining

So like most games, I have inventory screens, equip screens, shop screens, and all that. I've previously been making each "screen" controlled by its own script (which is normal I think), and I draw ...