Unity is a highly cross-platform engine that focuses on easy art pipeline process and uses Mono as its scripting back end.

learn more… | top users | synonyms (1)

0
votes
0answers
149 views

Unity Android Unable to convert classes into dex format AdMob

I'm a beginner Unity programmer (school-age), so I don't know that much about the system. On its own my app compiles fine, but when I implement the AdMob SDK (Google) 2.1, I have the following error ...
-1
votes
1answer
85 views

Trajectory Projectile with Collision Detection

Right now I am trying to create projectile for cannon in which I want to detect collision also. At present I have simple working projectile after using two references Unity – How to display ...
7
votes
5answers
2k views

Is C# different in Unity?

Does Unity use a different version of C#, or is it all the same? It looks different from regular C# but there are some regular C# elements in there.
5
votes
1answer
214 views

Top-Down Octree Generation of Procedural Terrain

I'm trying to implement a voxel-based terrain generation system in Unity3d (C#). I have successfully implemented a uniform 3d grid system, and have extracted the isosurface out using Marching Cubes ...
0
votes
2answers
149 views

How do I create a knockback-movement?

I am a web developer new to game development, and with limited math knowledge. I am writing a character movement controller in Unity. The game has an isometric Diablo-like camera. The character moves ...
0
votes
1answer
31 views

Unity Rigidbody2D to act on certain gameobject only

I am creating a 2D game and the player object has a rigidbody2D attached to it. The game works fine until the player collides with a power up. The rigidbody physics get all messed up. So I was ...
0
votes
1answer
140 views

Camera controller in a 2d platformer

I'm basically bumming around using Unity's 2D creation tools, and I've managed to create a little platformer physics demo. There's a lot of work to be done, but I've got basic movement down, some ...
0
votes
1answer
76 views

Simultaneous Animation for a GameObject - Unity3D

Its my second week with Unity. I am doing a 2D game and I have a small GameObject which should change its sprite along with following a definite path defined in Animation Curves. I did both of them ...
0
votes
1answer
54 views

How to use sprite as font in Unity?

I've started working on my first game in Unity; It's very simple, there's a spinning block in the middle, and there are spinning blocks coming from all sides. When they hit the middle block, you lose ...
0
votes
0answers
28 views

Using a Quad to cut out a Layer?

Looking for options on this, but I wanted to take a Quad (or other shape), apply a material to it, and have it cutout an entire layer, to reveal the layers below/behind it. Sort of like a portal ...
1
vote
2answers
71 views

Should I shade models before or after importing them into Unity?

Is it better to shade a model inside the 3D modeling software or inside Unity? As an example, if I need to use a transparent model, should it be made transparent inside the modeling application or ...
1
vote
1answer
52 views

Change velocity of CharacterController?

I'm trying to change the velocity of a character controller component on a Third Person Controller, but when I try to change it, the console says the velocity is read only. This is my code. ...
1
vote
3answers
109 views

Freeze Player position temporarily?

I'm making a 2D sidescroller (although it's technically being made in 3D), and I need to freeze a player's position temporarily. With a RigidBody, this would be simple, but I can't think of how to do ...
1
vote
0answers
59 views

Particle Effects Start Glitching out

My particle effects have gone crazy look: In my game, bombs drop on castle and then explode For the first few second of my game the particle effects for the explosion works. The particle effects ...
0
votes
2answers
130 views

How to add a constant horizontal force just like gravity?

I want to add a constant horizontal force, just like gravity to a projectile or a sphere moving in 3d space, which will make the projectile or ball or sphere or whatever be influenced by this force so ...
3
votes
1answer
107 views

Unity's default integration method

Which method(s) does Unity provide for physical integration? RK4? Verlet? Euler?
2
votes
1answer
258 views

How to simulate wind in 2D

for a 2D scenario, I wanted to have a fan blow at an object and make it move with the "wind", how can I simulate the wind under these circumstances?
0
votes
0answers
125 views

How can I animate 2d sprite rotation without interpolation?

I would like to animate a weapon being swung in 2 frames - all I'm doing is changing the position and rotation of the weapon sprite. However, I don't want unity to interpolate the rotation (generate ...
0
votes
2answers
90 views

Make a square flickering at a preset frequency

I'm working on a medi-sci project where I want the patient to use brainwaves to exercise control the environment. The environmnet is a 2D game where the game character is to be controlled by 2 ...
0
votes
1answer
82 views

How should I detect collisions with objects on a “timeline”?

I'd like to replicate this game's mechanic of the player smashing walls with a precise timing to a background rhythm. How should I check when each wall should be broken? Does the player animation use ...
3
votes
5answers
197 views

Can I extract Flash SWF sprite frames to bitmaps?

I want to create the 2D graphics of my game in Flash Studio, but then get all the frames from my SWF movies into C# for further work in Unity3D. I find it easier to create nice smooth animations in ...
1
vote
2answers
107 views

Normals in my skinned model are not animated

I have a blender skinned mode with animation. Normals look like they are messed up. This is how it looks in Unity3D before and after animation. As you can see, my model should be lit up just like ...
0
votes
1answer
71 views

How should I texture in Blender to use in Unity?

I need to model some things to use in Unity. How should I texture objects(etc road,tree) in Blender? Almost textures lost when I export them to Unity..
2
votes
2answers
85 views

Blender-to-Unity Animation Issue

I've been programming games for quite a few years now, but I recently thought I would try my hand at some simple 3D modeling and animation. I'm currently using Unity and Blender. In Blender, I was ...
0
votes
1answer
121 views

Angled topdown perspective camera for 2.5d game

I have a 2d tile based game created using Unity's 2d tools and orthographic camera: The tiles are created by programmatically generating a mesh, assigning a texture to each pair of triangles, and ...
-1
votes
2answers
147 views

How can I read inputs from buttons at the same time?

I am using the tk2d toolkit. For my project, each player has their own button. I need to be able to get both buttons inputs (at the same time) so that I can figure out which up event first. I run ...
2
votes
1answer
42 views

Unity refuses to open 2 popup windows

So am am making a unity program, where if you click 2 different objects, 2 different windows are supposed to pop up. To make them, I use private private bool showPopUp = false; private Rect ...
0
votes
0answers
30 views

Windows Phone Class DLL on Unity3D problem

I'm trying to enable networking funcionality for Windows Phone on Unity. To do that, I've read that I need to create a dll on Visual Studio and use it on Unity. So I did wrote a class and made an app ...
6
votes
4answers
277 views

How do you handle aspect ratio differences with Unity 2D?

I've gotten a lot of answers to this question, but they are all generic and generally not very useful. None of the tutorials talk about aspect ratio and dealing with mobile devices and there are a ...
1
vote
2answers
210 views

How to disable play automatically on animation in Unity3d 4.5.1

Where is the option to disable the 'Play Automatically' function for animations in Unity3d 4.5.1. In previous versions, there was a button under the Animation tab to disable the play automatically: ...
0
votes
1answer
117 views

Why is anti aliasing not being applied to my 2D objects in Unity?

I am drawing 2D objects in Unity. Some of these objects are drawn using the standard sprite method that is built into Unity. Others are computed as distance functions in a shader. In both cases I ...
2
votes
2answers
117 views

Unity: stop/play only background music

I have a music sound clip simply drag-n-dropped to my hierarchy. I also have other sound effects in my game. I want to pause/play background music on button press but only music, not all sound ...
0
votes
2answers
68 views

Unity Texture Problem

http://www.gfycat.com/FlawedLimpingGrizzlybear http://www.gfycat.com/UnawareQuerulousHawk Every texture and shader has the same problem. It seems like the problem has nothing to do with either. ...
2
votes
1answer
78 views

How to subscribe to an event fired from any Instance/Object of type X

I'm currently working on a small game-engine and i'm kinda stuck on finding the right pattern to subscribe to an event fired from any instance of type X.To understand what i'm trying to achieve, here ...
4
votes
1answer
151 views

Simple Water surface simulation problems (GDC2008 Matthias Muller- Hello World)

Im attempting to implement a simple height field water surface simulation outlined in Matthias Muller's GDC 2008 talk. "http://www.matthiasmueller.info/talks/gdc2008.pdf" I can't seem to see why it ...
2
votes
1answer
51 views

Unity Material constructor not applying Shader

I am proceedurally generating a generic game object and trying to make it transparent using the default diffuse transparency shader. meshRenderer.materials[0]=new ...
2
votes
1answer
136 views

Can the Shuriken particle system create particles with random shapes and sizes?

I want to create differently sized (but small, relative to the characters) dust clouds for player movement that move away from the player and fade away by shrinking. This animated GIF from Samurai ...
1
vote
0answers
32 views

Unity 2D angular velocity center [duplicate]

I try to add angular velocity to my GameObject with this command: rigidbody2D.angularVelocity = Random.value * tumble; All works, but I want center of velocity be in the center of my rigidbody, but ...
1
vote
1answer
104 views

Trigger for Melee-attack not working

I'm currently trying to add a melee-slash attack to my Sidescroller. For that I decided to to have an invisible box-colliders infront of my character. My idea is to activate it when the attack-key is ...
3
votes
2answers
170 views

Three Screens = Three Cameras?

I have three screens which are at an angle to each other. Basically, the left and right cameras need to move relative to the main camera in such a way that it would look like each screen is a window ...
0
votes
1answer
70 views

facebook like for unity android

Is there a way to add a like button which links to my page for my android game which I made in unity. Any help would be appreciated.
0
votes
1answer
124 views

Lock mouse in center of screen, and still use to move camera Unity

I am making a program from 1st person point of view. I would like the camera to be moved using the mouse, preferably using simple code, like from XNA var center = this.Window.ClientBounds; ...
2
votes
1answer
53 views

Is there a way to view all colliders in a unity project at runtime (after the game have been deployed)?

I'm have created a small Unity project but physics has weird behavior (bug). Unfortunately it only happens on some specific hardware (after build), not on development machine. I don't know what is ...
2
votes
1answer
121 views

How do I save a screenshot and load it as a texture for use in game?

I have a Unity level that takes a screenshot taken in the previous level and applies it as a material to a Plane, the problem is that it will get stuck and not apply the most recent version of the ...
0
votes
2answers
65 views

Load Prefab to variable

I have my code, for my weapon: using UnityEngine; using System.Collections; public class Arma : MonoBehaviour { public static int municao; GameObject bullet; GUIText texto; // Use ...
-1
votes
2answers
71 views

C#Script select GameObject

I want to load the prefab instead of the gameobject that is in the screen, my code is this one: using UnityEngine; using System.Collections; public class Arma : MonoBehaviour { public static int ...
0
votes
0answers
24 views

moving a rig's hips by his leg bones

i am using motion capture with sensors attached to my legs. I can move my legs and rotate them at present. Now i want to add gravity to it and make the rig walk on a plane. I used basic collision by ...
0
votes
0answers
37 views

Unity3D : Prefab Instancing Issue

I am using latest unity engine and I am having a scripting issue. I create a prefab , added a few scripts to it and I am trying to instantiate a few of those objects like this : GameObject ...
0
votes
1answer
45 views

touch in guiTexture

Before time in my game start. i want there will show a guiTexture.. if i touch this guiTexture, that will hidden and the time game will start. I try to make a script but it doesn't work. I'm a bit ...
0
votes
0answers
35 views

Unity - Android touch Problem

I've build my game for various platforms using Unity3d 4.3.3. I've tested it on windows, Mac, iOS and android as well. It works perfectly in all the devices except few high and android devices like ...