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
1answer
215 views

Unity Render Texture Artifacting

I'm having weird black artifacts appear on my render textures when they are transformed while the game is running. I am using a ScrollRect as a scrolling container for buttons (the buttons are just ...
2
votes
3answers
35 views

Curve between two waypoints

We are developing racing game.I have set up waypoints to let player go ahead. I am stuck at how to add curvy movements on turn ? As you can see on following img I have to add lot of waypoints ...
1
vote
1answer
57 views

How to detect collision position and that position's texture color in Unity?

I have a prefab and I use Circlecollider2D for physics operations. I want to detect the color of the contact position of the collided objects ? Is is possible by using Unity's collider classes ?
10
votes
3answers
11k views

Unity Android versus android SDK

I am familiar with Unity and in the process of learning android SDK when the announcement about unity android basic came out. What would be the advantages and disadvantages of using the android SDK ...
0
votes
0answers
8 views

How to create axes for a console controller

What should I change in the input manager to enable me to use a joystick? I have a usb cable to connect the joystick to the computer but how do I set up the controls?
1
vote
1answer
85 views

Different Screen Sizes and Camera in Unity

Now I know that no matter what the screen size is the camera will keep its height, so no worries about that. My question is, is there a way to manipulate the camera, either its orthographic size, or ...
1
vote
1answer
37 views

Update Based Animation Position Values?

Is it possible to control the key-frame/sample value or the time based position in the animator? I’ve set a global float that identifies the rotation of an object on its Y axis and I would like the ...
0
votes
2answers
45 views

Generating hidden box collider between two game objects in unity

I'm trying to implement flappy bird clone using unity. I'm creating two obstacles at random y position. I would like to create a hidden box collider game object between them, but I'm struggling with ...
0
votes
0answers
21 views

Can't set up a PS3 controller in Unity

So I connected a ps3 controller to my computer via USB cable, when I press play I am able to move by using arrows on the left of the ps3 controller and also I am able to shoot and aim by triangle and ...
2
votes
2answers
312 views

Camera movement and threshold not working

I have a platformer that is in progress, part of this has a camera which I only want to move when the character moves out of a certain threshold, to try to accomplish this I have the following if ...
0
votes
1answer
37 views

Can't move character at all in unity basic platformer guide

so, I followed below tutorial. https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/creating-a-basic-platformer-game Going well until 18:50 (video time in tutorial), when the ...
0
votes
1answer
18 views

invaliduriexception with photon unity

I am using photon unity networking right now to make a multiplayer game. When I publish to windows the build works fine, but when I change unitys build settings from windows to webgl it gives my a ...
0
votes
1answer
270 views

Update DirectX 11 Texture Created in Unity Asynchronously in the Native (c++) Plugin

Sorry for the long question :D tl;dr version :) Is it possible to update DirectX 11 textures created in Unity asynchronously in a native plugin (C++)? I've written a plugin that retrieves data from ...
2
votes
1answer
150 views

How can I use a lookup table for brightness and contrast?

Currently, I implemented a rudimentary brightness and contrast algorithm that changes brightness and contrast pixel by pixel. This was super inefficient performance wise and the algorithm looked a bit ...
0
votes
1answer
30 views

How to correctly draw a 2D polygon in Unity

I'm trying to draw a 2D polygon using GL.Line; however I'm not getting a polygon but separated lines instead. In the example below, I would expect a rectangle formed by the spheres: My code is the ...
2
votes
1answer
64 views

How can I get complete path of a sprite?

I want to get a path of sprite using the spriteRenderer component in Unity.I want my path should be like - "asset/PATH OF MY FILE/FILENAME.EXTENSION". Currently I am using following code but it ...
2
votes
1answer
245 views

What is wrong with my 2D orbit calculation?

I am working on a 2D game, and I am working on adding some space physics, so I need to find a way to create a circular orbit. I want to make my game object move on a circular way around a planet. I'm ...
1
vote
2answers
39 views

BoxCollider not blocking other object(s)

I'm really newbie , watched about 20 videos about and tried to do something. But I still have problems with collisions. I'm working on 2D. I have a Sprite and a Cube (GameObject>3D Object>Cube). ...
4
votes
3answers
146 views

How to clip game objects to a rectangular area

I'm trying to figure out how to do this but am coming up short. I'm making a slot machine in unity 2d and would like to clip the tile prefabs when they leave a given rectangular area. I can't seem to ...
0
votes
1answer
124 views

submeshes and dynamic batching doesnt work as expected

I'm duplicating one object with submeshes frequently, and assigning a random material from five materials to each submesh. There is batching happening, but it's not quite as efficient as I would have ...
-1
votes
1answer
912 views

Start work Unity 3d [duplicate]

Possible Duplicate: Best place for learning how to write games in Unity3d HI All, I am just a new candidate who is going to work upon the unity 3d game engine so guys I need some help to ...
-3
votes
0answers
43 views

Orbital gravity in Unity 5 [on hold]

It's pretty much in the title: how can I make orbital gravity? I am trying to make a space-themed FPS.
1
vote
2answers
39 views

Animation impulse system?

I'm working on an animation system for an RTS game. Each unit has several animation states: Move, Idle, Engaging, etc.. Units also have a variety of "Animation Impulses" which are animations that get ...
0
votes
2answers
27 views

get back unity default interface

i installed unity recently .and interface of unity looks like that [see the image] in all tutorials i see on the internet. but this is my one(I'm not in the game tab I'm in the scene tab)it's look ...
2
votes
1answer
23 views

How do I make UIText scale properly in a VerticalLayoutGroup in Unity?

I have a Panel with an AspectRatioFitter on it. In there, I have a vertical layout group, with three buttons, Standard Mode, Speed Mode, Chaos Mode. I have the Layout Group's anchors set to keep its ...
2
votes
1answer
71 views

How should asset bundles be divided?

The only way to load an asset from an asset bundle into memory is to load the entire thing, decompress and pull out the asset you want, then unload the entire thing, except the assets you want. This ...
3
votes
2answers
88 views

Unity - Water Cube (to 2D game)

I wonder if you can create a cube of water within the unity! I'm starting to use the Unity, and took a sought as to whether there was already something like this ... but have not found any tutorial ...
0
votes
2answers
83 views

Implementing a delay timer into triggered method

I have a shoot method that is used as a mouseDown() Trigger on my player. I am wanting to introduce a delayTimer but am unsure of how to do this within the method due to the trigger. public void ...
1
vote
2answers
112 views

How to use Input.GetAxis(“Mouse X/Y”) to rotate the camera?

I want to make a first person camera that rotates with the mouse. I looked at the Input.GetAxis Scripting API page and found a sample code, which I have included at the bottom of my post. Upon trying ...
0
votes
1answer
41 views

Unity why do all gameobjects not dissapear from view when I switch cameras?

I am having trouble with camera switching. I have two cameras: "Camera1" and "Camera2". A "button script" attached to Camera1 allows a switch to Camera2. It also positions the cameras. There is a ...
1
vote
2answers
387 views

Is WWW reliable for downloading a large AssetBundle?

I have a very large AssetBundle. More than 200MB. Is WWW reasonable for downloading it from my server? I heard that you can't tell the timeout it has. I intend to use it for iOS and Android. Since ...
0
votes
1answer
15 views

Export normal map from unity?

In unity I can create a normal map out of a black and white image (By changing the type to normal map and select create from grayscale) Im wondering if there is a way to export the normal map like it ...
0
votes
1answer
21 views

UNITY3D - Orthographic Camera not render SHADER (2D GAME)

I have a problem with camera render, see the video please :) (note.: sorry for the music) http://youtu.be/BB8rXIzIWVU In Camera "Perspective", i can see the effect of shader: In Camera ...
0
votes
2answers
64 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
19 views

Water4Advance far view seems stale and plain

Hi How can I remove far clipping in Water4Advance so that it matches near view like following img? Currently far view water seems plaine with no wave n bumps at all.
1
vote
1answer
32 views

Using coroutines to instantiate larger GameObjects in Unity/C#

We are making a scroller type game for mobile platforms and we got pretty far (Beta is already out). Now we are adding some additional content and are starting to experience a noticable lag when ...
1
vote
1answer
309 views

Unity UI Input Field suddenly malfunctioned

I'm using Unity 5.0.1f1, and my UI Input Fields are not working as they are supposed to. I have an Input Field that is placed in a Panel and inside a Canvas. It has a Text component in which I can ...
0
votes
1answer
24 views

Is it possible in Unity to Flip a 2D Sprite Without Flipping the Object it is Assigned to?

I 'built' (followed a tutorial) on a collision detection system, and when I flip the object to go left and right the collision messes up. So I have three options; find a way to modify the collision ...
0
votes
1answer
175 views

Unity3d - c# - changing FPSInputController controls through script

For a game I am making I would like the user to be able to change the controls (in game NOT through the clunky launch window (wich i disabled)) I have the system working but don't know how to change ...
4
votes
1answer
3k views

How to correctly draw a line in Unity

I'm working on a game which requires me to draw a few lines from a single point that is more formally said Given point A with coordinates x,y I draw n lines where the i-th line has the coordinates ...
1
vote
1answer
293 views

I can't drag'n'drop UI-Elements from the Scene-hierarchy into a public field (Unity 5)

I just watched this Video https://unity3d.com/learn/tutorials/projects/survival-shooter/player-health and tried to drag'n'drop the UI-Elements on the matching script, just like they did. But this is ...
0
votes
1answer
63 views

GameObject scope over RPC call

Debugging my code I faced some unexpected behavior. I called an RPC using uLink.NetworkView on the server passing some parameter including a GameObject tagged as Player. Inside that RPC I make a ...
1
vote
2answers
78 views

Orthographic Camera settings for a 2D game

I'm starting out a 2D wrestling game in Unity 5 and i need some help. The default resolution of game needs to be 320x240. The background sprite that i would be using is 640x480. The camera would move ...
-1
votes
1answer
10 views

Cant sign in to MSDN/Visual Studio in Unity after trial [on hold]

I've been using VS13 instead of Monodevelop for my Unity projects and my "30-day trial" has ended. Apparently all I have to do is sign in with my MSDN account and it should let me continue using VS ...
0
votes
0answers
14 views

Need help with torque and velocity [on hold]

I made some basic movement code for my player in C#. Here it is: public class Movement : MonoBehaviour { public float rotationspeed = 100.0f; public float maxrot; void Update () { ...
0
votes
0answers
14 views

How to make multiple characters with similar design [duplicate]

I am making a 2d platformer RPG game and I would like to create a character creation system that allows you to create your character as you please in the beginning. Since I want at least 10 different ...
7
votes
1answer
1k views

How to occlude lights in Unity3D?

First off, I own Unity Pro. I've been looking in to occluding lights when they aren't being viewed for a while now to improve performance. The main methods I ran in to were using BecameVisible() and ...
0
votes
1answer
49 views

unity animation not starting

I have written the following code: public class TargetAnimation : MonoBehaviour { Animation anim; public AnimationClip Open; // Use this for initialization void Start () { ...
0
votes
1answer
59 views

Rotation and timer at the same time

I have a project where I flip a card after 5 seconds, then I want to start a countdown timer of x seconds. After x seconds the card flips again. I found a good example for the timer here, but that ...
0
votes
0answers
15 views

Unity WebGL or WebPlayer? [on hold]

The last time I tried WebGL (a couple of months ago), it ran at 30x lower framerate than webplayer, took forever to build, and had increased build size. Since then, I haven't seen significant work ...