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)

1
vote
0answers
5 views

Share a function between two passes inside CG Shader for unity3d

I'm writing a shader in CG language for Unity3d. When making transparent object you need to create two similar passes in SubShader. First to render only back faces (with Cull Front) and second to ...
0
votes
1answer
12 views

Color submeshes in unity3d

I have a mesh that has 10 submeshes, I wonder how I can change the color of of these submeshes to a different color (e.g submesh1 will have a red color, submesh2 will have a blue color,...etc). Any ...
-1
votes
0answers
22 views

Water jetpack effect [on hold]

I am working on mobile game,the requirement of game is to have water jetpack. I want to achieve water effect something like we see in jetpack joyride, https://www.youtube.com/watch?v=bW-hz3GUGSo ...
0
votes
0answers
22 views

Player not getting destroyed when its attacked [on hold]

I made a game in Unity 2D, it was working fine But when I upgraded from unity 4.3 to unity 5.0 some of the collider are not working properly. I made the game objects again but still the problem ...
0
votes
2answers
21 views

unity animation won't play unless input key is held

The code is simple. If the player presses the right arrow key, one animation clip plays. If the left arrow key, another clip plays, etc. However, the clip doesnt play fully unless the input key is ...
0
votes
0answers
14 views

Is it possible to generate a Spheremap from a Texture2D in Unity at run-time?

I was trying to create a spheremap from a Texture2D for a skybox at run-time (Standalone build) in Unity. Does anyone know if this is possible and how to do that in Unity? In the editor you can set ...
0
votes
2answers
37 views

Rotate Character towards Moving direction

So my Problem is that my Character is always shooting in the way it is looking. Unfortunaly my solution seems to be a very bad one. I am not really cabable of aiming with my solution. Neither with ...
1
vote
0answers
21 views

Changing an Image's alpha through an animation in Unity

I'm trying to change an Image's alpha through a legacy animation in Unity, so that it fades in and out in a loop. The animation works: I can see the color updated in realtime in the inspector. But the ...
0
votes
1answer
33 views

Is there a way of moving the transform of an object relative to it's geometry

I have a number of objects (mostly prefabs) that have their transform origin in inconvienient places such as about 1 unit to the left of the actual geometry or somewhere inside an object where it's ...
-3
votes
0answers
83 views

How powerful is Unity, and is it fit for large-scale projects such as AAA games? [on hold]

I've seen Unity been used in several indie games, however I haven't actually seen it been used in a large-scale project. Why is this? If it's due to the lack of power, what areas does it lack in? ...
0
votes
1answer
19 views

Unity - “SetDestination” can only be called on an active agent that has been placed on a NavMesh. UnityEngine.NavMeshAgent:SetDestination(Vector3)

I'm using Unity5 right now. I got this error when try to setDestination. "SetDestination" can only be called on an active agent that has been placed on a NavMesh. ...
0
votes
2answers
28 views

Unity - Text not properly align

My text doesn't seem properly align to top left even I already set it in Rect Transform. Please advice. Thank you.
0
votes
1answer
31 views

How to Render and Blend Multiple Frames to a Buffer in Unity?

I was wondering if anyone knew how to render multiple frames from a camera or texture to a buffer in Unity and to then blend them together? Is this possible? If so how would I go about doing so in ...
0
votes
1answer
34 views

UnityException: Unable to install APK! Installation failed. See the Console for details

I got this error message when trying to build and run on Android actual device. UnityException: Unable to install APK! Installation failed. See the Console for details. ...
2
votes
1answer
20 views

Unity - Main manifest has <uses-sdk android:minSdkVersion='9'> but library uses minSdkVersion='17'

I got this error message when trying to build and run for Android. Error: [Temp/StagingArea/AndroidManifest-main.xml:22, ...
2
votes
1answer
77 views

What is a good way to code dialogue creation?

I'm thinking of making a single method/class/something that will handle my dialogue in the game. AKA, something like: Main text: Choice 1 Choice 2 So I want a method that will able to put ...
2
votes
1answer
74 views

What is an acceptable receive rate for a client?

I've noticed that syncing a transform( in Unity, so a Vector3, and a Quaternion ) ends up being close to 1000 byes per second received on a client( send rate of 20hz ). Multiply this by a generous 20 ...
2
votes
3answers
89 views

What are the differences between using “GetComponent<Transform>()” and this.transform?

I've been reading some example codes and working on my own stuff in Unity. I've been seeing a lot of GetComponent, and often this will be done for the transform: Transform _transform = ...
0
votes
1answer
42 views

Access different vertices of a Mesh Unity 3d

I have a mesh and I want to color each group of vertices with a certain color. If anyone could please advise how this can be done in Unity using coding?
0
votes
1answer
23 views

Making a multiplayer game on unity [on hold]

I've made a game with friends on XNA and I wanna do it in unity. I'm starting to learn it for now, made a spritesheet and did some basic movement animations. Can u suggest some site or a detailed ...
0
votes
0answers
40 views

Solution for GIT commits in Visual Studio while Unity is open?

Specifications -VS 2013 Pro (Linked with Unity) -Unity 4.6.1 -Git Version Control (Linked with Visual Studio 2013) Summary After much research, I haven't found any solutions to this fix. *While ...
1
vote
1answer
50 views

Level Data with JSON [on hold]

I am doing level data for a game in Unity with C# I have it in my game as int[,] data = { {0,1,1,0,0,0,1,1,0}, {1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1}, ...
-1
votes
0answers
23 views

How do i make a load level method that if you touch a object you move to a different level in unity [on hold]

public void OnTriggerEnter2D(Collider2D collisionObject) { if (collisionObject.gameObject.tag == "h") { Application.LoadLevel ("h12"); } }
2
votes
2answers
172 views

How to apply a script to multiple Objects in Unity?

In Unity, I've almost 200 or more objects. I wish to apply single script to all those objects. I'm a beginner & learning scripts in Unity. Edit: At the time of editing the scene itself.
3
votes
2answers
43 views

Unity Change Sceneview to camera view

On selecting camera, I get the camera preview. In Unity, while editing the scene, I wish to switch in such a perspective view that is exactly visible by the main camera. Is there a short cut to ...
5
votes
2answers
84 views

Object Composition in the Unity Editor

I'm trying to learn how to use Unity for my class composition, and I was wondering if you could help me. I'm trying to create a simple game where the player is trying to pop a bunch of balloons. ...
2
votes
2answers
65 views

Unity3D: Efficiently loading chunks in an infinite voxel engine

I'm developing a voxel engine in C# using Unity and I'm currently trying to implement infinite terrain, so I took a look at other Unity voxel engines that have infinite terrain. I've seen three ...
0
votes
0answers
14 views

A panel to change 3d object properties when right click on it (Unity)

I'm building a UI system to edit selected 3D objects. I have spheres on the screen and I want to be able to edit their proprieties (radius for example). In order to do that I want the user to be able ...
-1
votes
1answer
18 views

Unable to animate sprite renderer

Why am I unable to add any of the sprite renderer's properties? How can I do it? On all the other properties like transform and so on, when I open them I have a + indicator in the right if I want to ...
-1
votes
2answers
87 views

In Unity3D, how do I create an efficient scratch card effect?

I want to create a scratch-card-like effect in new Unity UI's new Image tag. I know it's possible with setPixels, but that's prohibitively expensive on mobile devices. Something like this: I'd ...
0
votes
0answers
50 views

Room game type logic [on hold]

I have started creating a FPS game(nothing serious), now i am facing another issue. Each can create a room(server side), server controlles AI, bullet physics and just about everything. The problem i ...
0
votes
2answers
53 views

using an int to control events

Let me explain -- I'm just looking for a way that I can link a number to a set of methods. I want to randomly generate a "difficulty" int, and pick out an event based on the number I get. IE, if I get ...
0
votes
0answers
10 views

external camera did not recognize marker in metaio

I have one problem here.I'm using metaio sdk in unity and i want to use external camera to detect marker.but my problem is, the external camera cannot recognise marker.when i switch back to internal ...
0
votes
1answer
58 views

Comparing two strings in Unity C# [on hold]

I am trying to compare two strings in C# but even though I print the strings and they are the same, the check always fails. Only one is stored in a variable and the other is hardcoded. I tried using ...
2
votes
1answer
82 views

Which is the better way to distribute server workload for MMO server?

I'm making a server for MMO in Unity, which implies that I'll have a big world, split into maps which will be on different servers (to distribute the workload), managed by one master server. Now I ...
-2
votes
1answer
34 views

Unity - How To Save Some Variable WIth PlayerPrefs?

I have a small problem. in the game that I'm creating I created an array of items, each item includes a number of variables (cost, level, etc.). my goal is to save your own variables for each item, ...
0
votes
0answers
26 views

Character controller going down slopes

When I go down slopes with character controller, if the speed is too high, the character just flies off the slope and lands at the bottom. I want my character to "stick" to the slope rather then just ...
0
votes
1answer
51 views

How to make a one way trigger?

In my game, there is a cat that jumps on pillars. When it lands on a pillar, force is applied and it jumps. There are three animation states which are just single image. The states are : idle,up and ...
0
votes
1answer
26 views

player isn't jumping at some rotation angle

i can't figure out why this happens. the player would not jump ad some rotation angles. this is my code for jumping: if (Physics.Raycast(transform.position,Vector3.down,1f)) { for (int ...
0
votes
0answers
37 views

Unity3D - How to make partially selected EditorGUI.Toggle?

I have nested group of toggles created with EditorGUILayout.ToggleLeft(). I want to change state of the parent toggle to partial check if child toggles have mixed states, like here: But ...
-1
votes
0answers
45 views

What game engine should I use? [closed]

Okay before I go any further I have worked with other engines before like unity and attempted to learn the new unreal 4. The game I would like to make is an adventure game with a wide open world and a ...
-1
votes
0answers
39 views

How to get a license for XBLA Indie Games?

I'm an experienced Unity3D developer with multiple mobile apps. I want to start developing for consoles, like the Xbox. I have multiple questions regarding this: 1)How do I get a license? 2)How much ...
1
vote
1answer
39 views

Unity3D - GameObject as a static function

Newbie Unity3D/C# developer here. I've tried learning Unity3D during my May/June college vacation and came across a problem:Code 1: CameraObj returnVoid; void Start () { returnVoid = ...
0
votes
1answer
28 views

How to detect if I click on an object (2D) using Raycast?

I need to know this for a little popup I made in my game, I want to avoid using OnMouseDown because I have multiple cameras so I was wondering how I'd be able to detect a mouse click event on an ...
0
votes
0answers
28 views

Why does Unity add a heap of children to an imported animation when dragged into the scene?

When I drag an imported animation into the scene, Unity adds: A game object with an Animator component A game object with a skinned mesh renderer component. A game object with just a transform that ...
1
vote
1answer
28 views

Vector2.Distance on different resolutions

firstTouchPos = Camera.main.ScreenToWorldPoint(Input.GetTouch(0).position); endTouchPos = Camera.main.ScreenToWorldPoint(Input.GetTouch(0).position); //the height of the ...
1
vote
1answer
24 views

Start iTween MoveTo from a specific node? (Unity)

I just started using iTween as part of my day/night cycle. I'm trying to move the sun and moon along a curve, but I want have the sun/moon start at a specific location depending on the time of day. ...
-2
votes
1answer
37 views

How can I make a dynamic crashed effect in unity3d? [closed]

I'm doing an endless game where my little car has to crash in other cars. The game logic is working but I have not been able to find a way to implement a visual crash effect, so that the other car ...
-3
votes
0answers
37 views

Which is the best Platform/Engine for a beginner for developing an Android game with following specifications [closed]

This is a very general question for which I wouldn't mind getting equally general answer. I want to develop a simple 2D android game with following specifications: 1> A 3D object that rotates in all ...
0
votes
1answer
28 views

Animator, gameObject position not being kept

I have idle & popout animations. Idle- simple scaling up and down 2d object and popout- get the gameobject's position to the right and leave it there. I'm using animator for this purpose. I have a ...