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
6 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 ...
0
votes
1answer
31 views

What is the best practice in importing models to Unity

Is it better to shade a model inside the 3D modelling software or inside unity? as an example if I need to use a transparent model should it be made transparent inside the modelling application or ...
1
vote
1answer
17 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
1answer
40 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
31 views

Particle Effects Start Glitching out

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 are made using the unity particle systems: ...
0
votes
2answers
103 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 ...
0
votes
0answers
42 views

Unity 3D - Is there a better data structure than a graph of nodes for 3d grid-based game? [on hold]

I'm looking into using Unity3D and was wondering what a good data structure for a grid-based 3d isometric game would be. I'm thinking of writing a Node class to represent a valid space the character ...
3
votes
1answer
87 views

Unity's default integration method

Which method(s) does Unity provide for physical integration? RK4? Verlet? Euler?
2
votes
1answer
199 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
64 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
0answers
41 views

Croshair won't show up [closed]

Im trying to create a 'grab' croshair when the player points at a specific object.These are my scripts so far : For picking up letters : #pragma strict private var guiShow : boolean = false; var ...
0
votes
2answers
69 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
77 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 ...
2
votes
3answers
106 views
+50

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 ...
0
votes
0answers
52 views

Android Emulator for developers [WINDOWS] [closed]

Is there a Android emulator that is kinda like the iOS emulator? Easy to use. Bluestacks isn't what I'm looking for, that program is more designed to be used as a gaming program. Mac OS iOS Emulator ...
1
vote
2answers
89 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
55 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
72 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
82 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
129 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
32 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
18 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
137 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 ...
0
votes
0answers
41 views

how to add a spotlight effect to my targetenemy code

The current targeting code below changes the color of the enemy with tab button: Target enemy = change color of enemy to 'green' Deselect enemy = change color of enemy to 'blue' (press tab again) ...
1
vote
2answers
72 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
64 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 ...
-1
votes
0answers
27 views

Unity 3d: the difference developping in javascript/C#? [duplicate]

What is the difference(strong or weak)? I have asked several programmers, but they told me there is a preference topic.
2
votes
1answer
41 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
55 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
62 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
104 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
33 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
0answers
76 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
25 views

Unity 2D angular velocity center

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
82 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
161 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
39 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
61 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
40 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 ...
1
vote
0answers
74 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
50 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 ...
-2
votes
2answers
63 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
22 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 ...
1
vote
0answers
10 views

Do I need to worry about inlining in Unity/C#? [migrated]

For code clarity I sometimes create a function that should very obviously be inlined, be it either a wrapper, or a function that is only called in a single point, or a short function that is supposed ...
0
votes
0answers
24 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
27 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
26 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 ...
0
votes
1answer
43 views

Projective texturing and falloff

I quite understand how projective texturing works. I implemented successfully a shader for that following nvidia doc. The major problem I'm facing is that with that implementation the projector ...
0
votes
1answer
57 views

Take a screenshot from camera problem

I use script below to take a screenshot from camera. It's working fine. However, when I take a screenshot again (pressing k multiple times), its old image is not clear from the memory and it keep ...
-2
votes
1answer
73 views

Is Unity a well suited engine for games with procedually generated environments? [closed]

I've been looking for a suitable game engine for a new project, which will rely heavily on procedurally generated 3d environments. I've been looking into Unity, but it's not clear to me at this stage ...