Unity is a highly cross-platform engine that focuses on easy art pipeline process and uses Mono as its scripting back end.
0
votes
0answers
32 views
Best AI books for gaming? [on hold]
I am trying to get into game development and I am doing pretty well on the programming side. I am using Unity as my game engine. I know there are lots of off-the self engines and codes to give AI but ...
0
votes
0answers
9 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 ...
0
votes
0answers
24 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
1answer
54 views
I want to develop responsive resolution game for all device [on hold]
I m create a 2D Game in unity.But main problem is that looks and fill of my game is not same for each and every device of Android and iPhone. So please suggest me best and simple way to reduce this ...
0
votes
0answers
34 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
41 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
46 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
26 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.
-1
votes
0answers
14 views
Unity | Android Hittest [on hold]
I am creating an app for Android. I want to add some GUI-Buttons to move, but don't know how I can do it. The position of the GUI-stuff is right, but I don't know, how I can do a hittest for it. Here ...
-1
votes
0answers
15 views
Creating animations for Unity models using Blender? [on hold]
I am relatively new to Unity and was hoping someone could point me in the right direction.
Currently I am trying to make some animations using the free model Unity-Chan available from the asset ...
0
votes
0answers
61 views
Should I use Unity as a new developer? [on hold]
Would it be better in the long run to begin with a platform like Unity, where there is more visual feedback and less programming to start with? Or should I start out with programming exclusively, like ...
2
votes
1answer
34 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
1answer
27 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
56 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
97 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
0answers
18 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 ...
1
vote
0answers
47 views
Create a Shuriken particle system that randomly creates particles of various shape and size?
I want to create various sized (but small relative to the character sizes) dust clouds for player movement that move away from the player and then fade away by shrinking in size.
This animated GIF of ...
1
vote
0answers
19 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
71 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
149 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
32 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
39 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
33 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
63 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
49 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
59 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 ...
-1
votes
1answer
52 views
Enable/ Activate a script by script [closed]
I work in Unity 3d.
Let's say that there's an Object1 and an Object2.
Object1 has a script called ["ActivateObject2"].
Object2 has a script called ["LoadNextLevel"].
I need Object1 script to ...
0
votes
0answers
21 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
16 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
21 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
22 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
40 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
0answers
24 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
68 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 ...
1
vote
1answer
68 views
Inverse Explosion with Unity2d
I am currently trying to make all other objects push away from the player when the player explodes. It currently works, but it pushes close objects a little and far objects very far. What I want is ...
0
votes
0answers
20 views
GtkRadiant to unity?
i just chose unity as my game engine an i don't like the level editor, and i really enjoy gtkradiant, its really easy and fun to use. I was wondering if someone knows a way i can use my gtkradiant ...
1
vote
0answers
24 views
Determine Mesh Vertex Index Given Another Mesh Index
Please bare with me as I explain what I am trying to accomplish :P
Each 'X' below represents a mesh vertex:
For my Unity3d GameObject (G1); the mesh vertices are stored in a C# List object in the ...
0
votes
1answer
64 views
How do I create a HUD that appears to occupy 3D space/can animate?
I'm working with a group to try and make a first person space platformer in Unity, and was wondering if there would be anyway to create a HUD that moves and reacts to player actions, specifically ...
0
votes
1answer
133 views
What affects the size of APK files?
The size of the .apk file built by Unity is larger than I expected. Is it image resolution, number of scenes, or something else?
0
votes
0answers
32 views
hide and show many guiTexture
in the 1 scene there are many guiTexture. So how to write this code ?
public class guiTanya : MonoBehaviour {
public GUITexture guiA, guiB, guiC, guiD, guiE, guiF;
void onMouseDown() {
//if i press ...
0
votes
2answers
117 views
Problem with moving player through a secript by a set distance
I am currently trying to add a sort of "dash"-ability to my sidescroller.
What I try to do, is to let the player press a key where a simple key-press causes the player to move quickly into one ...
0
votes
1answer
85 views
How to design enemies pattern in non-bullet-hell shmups in Unity? [closed]
I am making a top down shooter.
Enemies will come in waves and attack in many different patterns (i.e. wave of 10 enemies flying in a elliptic curves, or a huge boss floating and shooting at you, ...
4
votes
1answer
156 views
How are game menus logically structured?
I've been struggling with making a game menu system in Unity for some time now. I spent time developing a way to help myself understand how game menus are connected together. Right now, I'm calling it ...
0
votes
0answers
36 views
How do I dynamically load a smaller texture in Unity based on the screen size?
I have a Unity application on windows phone which is having problems running on small devices because the HD textures are so huge. What is the best way to test and dynamically use a smaller version on ...
0
votes
1answer
64 views
Unity Gui from text file templates
I've been banging my head against a wall this past while over how I might create menu's and menu components in unity from text file. I would normally just build my own extended panel/label classes etc ...
0
votes
2answers
75 views
Unity - Avoid using Find method by caching UnityObjects - Code review
I'm trying to avoid using GameObject.Find during runtime to find particular GameObject components when wanting to instantiate them.
I have created a cache for the gameobjects from which I can either ...
1
vote
1answer
56 views
Why Does unity_LightPosition[0] Seem to Depend on Camera Position?
I'm trying to write a fairly basic shader but I keep running into lighting issues with Unity. My first problem was trying to figure out which variable stored the light's position in world space. ...
0
votes
0answers
4 views
Converting dictionary keys to array in Unity [migrated]
How do I convert a dictionary keys' to array in Unity 4.3? (other than manually, of course)
This solution doesn't seem to work, and I'm puzzled about why.
Code:
private Dictionary<int,Client> ...
4
votes
2answers
142 views
How can I find the “end” vertices on an open-ended mesh?
I was looking at a video of a system that extrudes meshes along a curve, connecting them end to end but adjusting the vertices for a smooth connection. It does this with a mesh that as far as I know ...