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)

-1
votes
1answer
1k views

Writing to XML issue Unity3D C#

I'm trying to create a tool using Unity to generate an XML file for use in another project. Now, please, before someone suggests I do it in something, the reason I am using Unity is that it allows me ...
1
vote
1answer
828 views

Unity3D and Texture2D. GetPixel returns wrong values

I'm trying to use Texture2D set and get colors, but I encountered a strange behavior. Here's the code to reproduce it: Texture2D tex = new Texture2D(2,2, TextureFormat.RGBA32 ,false); Color col = ...
3
votes
1answer
176 views

Can a UIKit application co-exist with a Unity game as a single application?

I have a typical UIKit application with three buttons - one opens an RSS feed in a UITableView, the second opens some kind of gallery view, and the third opens a Unity 3D game. Is it possible and how ...
2
votes
1answer
12k views

Unity3D draw call optimization : static batching VS manually draw mesh with MaterialPropertyBlock

I've read Unity3D draw call batching documentation. I understood it, and I want to use it (or something similar) in order to optimize my application. My situation is the following: I'm drawing ...
0
votes
1answer
262 views

UnityEngine.Vector2 does not contian a definition for “Set”… using futile

I am a bit lost, I am using futile and I am just trying to run the demo. But I keep getting UnityEngine.Vector2 does not contian a definition for "Set" in just one class, my using statments are: ...
2
votes
1answer
2k views

Blur shader without render textures?

Is it possible to append a blur shader to a standard (diffuse) shader ? I am looking for a way to do this as Unity indie doesn't allow render textures.
-3
votes
2answers
786 views

Can I develop 2D tower defense game with unit3D in C# for Android? [closed]

I tried to find the answer in unity3d site but without success. If the answer to my question is yes, does anyone know where I can find an example?
0
votes
1answer
246 views

Calculating Hit Accuracy score in a game

I'm currently in the process of making a scoreboard for my game. One of things I would like to display is the players accuracy in the amount of hits they had in game. However, I have never done this ...
1
vote
1answer
684 views

Unity3d import file on iOS device

im trying to figure out how to recall an external file in runtime on iOS device. I've already tried using Application.data+"/Raw/MY_FILE", with Application.streamingAssetsPath+"/MY_FILE", and with ...
2
votes
1answer
1k views

Blender mesh mirroring screws up normals when importing in Unity

My issue is as follows: I've modeled a robot in Blender 2.6. It's a mech-like biped or if you prefer, it kindda looks like a chicken. Since it's symmetrical on the XZ plane, I've decided to mirror ...
3
votes
5answers
7k views

Parse/Write JSON with Unity iOS

anybody know a tutorial or maybe can help me to develop a parser/reader for JSON compatible with Unity iOS pro? I've already tried different third part libraries but without luck (i've tried json.net, ...
4
votes
1answer
236 views

How to transform mesh components?

I am attempting to transform the components of a mesh directly using a 4x4 matrix. This is working for the vertex positions, but it is not working for the normals (and probably not the tangents ...
0
votes
4answers
6k views

How do I make a fiery particle system?

I added a particle system to the flame-emitting object in my Unity scene. But it's just little white balls, and I can't figure out how to make it fiery. Anyone? Everything I see on the internet ...
1
vote
3answers
1k views

Opening an XML in Unity3D when the game is built

At the moment, my game can open up an XML file inside the editor when I run it. In my XMLReader.cs I'm loading in my file like so: _xmlDocument.Load(Application.dataPath + ...
1
vote
0answers
96 views

How do I stop movement from being mirrored on the X and Y axis with Unity & Kinect?

I have made a scene and avatar in the scene, put all of the correct joints on the Open NI Skeleton, but the outcome is not only mirrored on the x-axis, it is also on the y-axis. So, when I lift my ...
3
votes
2answers
5k views

Unity Android: Truecolor texture performance hit and alternatives for truecolor

After integrating the graphics assets to my application, I noticed that when the textures are compressed they look very bad compared to truecolor. This happens to all the textures and it did not seem ...
4
votes
1answer
2k views

How to make a iOS plugin for Unity3d

I've passed last 2 days reading articles and book for understand how can i make a plugin for iOS in Unity. Basically i need just a demo for understand how it work. For now i've tried to make this ...
2
votes
2answers
670 views

adapting a Unity gravitational script to allow moons

I'm using this script: http://wiki.unity3d.com/index.php/Simple_planetary_orbits to get a solar system going in Unity, but it doesn't seem to support creating bodies that orbit other moving bodies ...
4
votes
1answer
507 views

How to use the float value from noise function in voxel terrain?

I'm using Unity, although this question is not really specific to that engine. Im also using an asset from the store called Coherent Noise. It has some neat noise functionality built it. I am ...
5
votes
2answers
2k views

Unity: how to apply programmatical changes to the Terrain SplatPrototype?

I have a script to which I add a Terrain object (I drag and drop the terrain in the public Terrain field). The Terrain is already setup in Unity to have 2 PaintTextures: 1 is a Square (set up with a ...
0
votes
2answers
3k views

Unity scaling instantiated GameObject at Start() doesn't “keep”

I have a very simple scenario: A box-like Prefab which is imported from Blender automatically (I have the .blend file in the Assets folder). A script that has two public GameObject fields. In one I ...
8
votes
4answers
5k views

The underlying mechanism in 'yield return www' of Unity3D Game Engine

In the Unity3D game engine, a common code sequence for getting remote data is this: WWW www = new WWW("http://remote.com/data/location/with/texture.png"); yield return www; What is the underlying ...
1
vote
3answers
5k views

How to use NGUI with Unity

I feel like Im missing something really simple, but Ive read about all the events NGUI can generate from an object and just dont get where to recive (or handle) the event. Do I just attach it to a ...
-4
votes
2answers
132 views

can't spot the error. Trying to increment [closed]

I really can't spot the error, or the misspelling. This script should increase the variable currentTime with 1 every second, as long as i am holding the Space button down. This is Unity C#. using ...
2
votes
1answer
1k views

Custom inventory items based on inheritance

So, here's the scenario: I'm building an RPG. Like most of the other RPGs on the market, my game will feature an inventory and of course, inventory items. So far I've worked well with using a single ...
2
votes
1answer
293 views

How does Against The Wall create an infinite wall?

There is a game called Against The Wall, developed by Michael P. Consoli. It's a fantastic game, as I've always been stumped at how the game creates an infinitely spanning wall. In the game, you can ...
0
votes
1answer
522 views

Maximum number of controllers Unity3D can handle

I've been trying to find out the maximum amount of xbox controller Unity3D can handle on one editor. I know through networking, Unity is capable of having as many people as your hardware can handle. ...
0
votes
2answers
174 views

Adding Vertices to a dynamic mesh via Method Call

I have a C# Struct with a static method, "Get Shape" which populates a List with the vertices of a polyhedron. Method Signature: public static void GetShape(Block b, int x, int y, int z, ...
0
votes
3answers
3k views

Cry Engine 3 vs UDK [closed]

Me and a bunch of guys from my University are thinking about getting started in game development, but, even though the game design is kind of ready, we are stucked at the point "which Engine should we ...
0
votes
2answers
6k views

How to add isometric (rts-alike) perspective and scolling in unity?

I want to develop some RTS/simulation game. Therefore I need a camera perspective like one knows it from Anno 1602 - 1404, as well as the camera scrolling. I think this is called isometric perspective ...
1
vote
2answers
847 views

How to get a Read-Write Reference to Parent GameObject from a script component attached to it?

I have a game object(object) with a script component(myscript) attached. I have a reference to myscript component through getComponent, and I want to change the transform of the gameObject the script ...
1
vote
1answer
1k views

Problem animating in Unity/Orthello 2D. Can't move gameObject

I have a enemy npc that moves left and right in a corridor. It's animated with 2 sprites using Orthello 2D Framework. If I untick the animation's play on start and looping, the npc moves correctly. ...
-1
votes
1answer
95 views

Unable to Call Instantiate in Class Member Function

The following javascript is attached to a gameObject. var instance : GameObject; class eg_class { function eg_func(){ var thePrefab : GameObject; instance = ...
0
votes
2answers
876 views

Why does my model render differently than its preview?

I've been importing .fbx files that I made with 3DS Max 2012 into Unity, and it's quite neat to see my models running around in game. However, I can't help but notice that the models, as they're ...
-2
votes
2answers
698 views

Making a game engine or using Unity3D? [closed]

I was wondering, which one would benefit me the most? I have as much time as I need to make a game engine and rapid development does not appeal to me. Unity3D is easy, but how much will mastering ...
6
votes
2answers
3k views

Why does Unity3D crash in VirtualBox?

I'm running Unity3D in a virtual instance of Windows, using the Virtual Box software on Linux. I have guest additions installed with DirectX support. I've tried using Windows XP SP3 32-bit, and ...
1
vote
1answer
828 views

Unity3d: Box collider attached to animated FBX models through scripts at run-time have wrong dimension

I have several scripts attached to static and non static models of my scene. All models are instantiated at run-time (and must be instantiated at run-time because I'm procedural building the scene). ...
1
vote
1answer
600 views

How to get a point to the left/right of a vector

I have a position vector of a point in space and a quaternion for it's rotation. What i'm trying to calculate is a point too the left and a point to the right. I have the position and ...
8
votes
1answer
3k views

Why doesn't Unity's OnCollisionEnter give me surface normals, and what's the most reliable way to get them?

Unity's on collision event gives you a Collision object that gives you some information about the collision that happened (including a list of ContactPoints with hit normals). But what you don't get ...
0
votes
2answers
357 views

Why does unity obj import flip my x coordinate?

When I import my wavefront obj model into unity and then draw lines over it with the same coordinates in the obj file, the x coordinate is negated. I don't see any option in the importer that might ...
2
votes
1answer
1k views

detect asset change while running in unity editor?

Is it possible to detect asset change while running in the unity editor. When I update my model, I see it change but the xml data associated with it does not change. So it would be nice to detect ...
1
vote
1answer
2k views

Unity Particle System collision detection problem

I'm using Unity 3.5.5f3 wich has the Shuriken particle system. I've made a blood particle system based on Unity's demos. (Exploding paint [Blood]) The blood is flowing and when it collides with a ...
-2
votes
1answer
130 views

Unity3D map form cubes [closed]

Hello there i need to build small destroyable map from 15x15x5 cubes i'm completley new in unity and i'll be very grateful for any advice
0
votes
1answer
574 views

Unity 5.1 audio issues (no sound in back channels)

I've trying to bring in surround sound audio into my project. I've set my computer up to run in 5.1 and when I play a 6 channel audio through windows media player (it's a test audio that does left ...
1
vote
1answer
744 views

Unity Frustum Culling Issue

I'm creating a game that utilizes off center projection. I've got my game set up in a CAVE being rendered in a cluster, over 8 PC's with 4 of these PC's being used for each eye (this creates a ...
5
votes
1answer
268 views

Dynamic Components

I am attempting to design a component-based architecture that allows Components to be dynamically enabled and disabled, much like the system employed by Unity3D. For example, all Components are ...
1
vote
1answer
4k views

Rotate to a set degree then stop Unity [closed]

I'm trying to make an object rotate up on the Y axis 90 degrees, then stop. I've got the rotating up bit working fine, it's getting it to stop once it hits 90. Some of the things I've tried include ...
4
votes
1answer
2k views

Custom shadow mapping in Unity 3D Free Edition

Since real time hard and soft shadows are Unity 3D Pro only features I thought I will learn Cg programming and create my own shadow mapping shader. But after some digging I found that the shadow ...
1
vote
2answers
791 views

How to pass an interface to Java from Unity code?

First, let me say that this is my first experience with Unity, so the answer may be right under my nose. I've also posted this question on Unity's answers site, but plugin questions don't seem to be ...
6
votes
1answer
419 views

Huge 2d pixelized world

I would like to make a game field in a indie-strategic 2d game to be some a-like this popular picture. So every "pixel"(blocks) changes it's color slowly, sometimes a bright color wave happens, etc, ...