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
124 views

Sprite Rendering Cost Calculation

First of all asking before asking this question I have already read following post for the clearance of my mind. Sprite Renderer Texture 2D I want to change my background texture as per device ...
0
votes
0answers
102 views

Dynamic load and unload material

For targeting multiple display resolution, I focus on using MultiPlatform Toolkit usage. In which I found following statement in tutorial section for dynamically handling materials. "Just remember ...
0
votes
0answers
129 views

Run a few seconds of simulation just after loading a scene

I'm looking for a way to execute 3 to 15 seconds of simulation once a scene is loaded. The problem is: some objects can be left suspended in motion while the player exits the scene. their state is ...
0
votes
1answer
183 views

Using Appendbuffers in unity for terrain generation

Like many others I figured I would try and make the most of the monster processing power of the GPU but I'm having trouble getting the basics in place. CPU code: using UnityEngine; using ...
0
votes
0answers
46 views

Memory Management on Physic Body Frames in Unity

Compared from the Android programming with the help of LibGDX and Eclipse programming software in making 2D physics based game from this previous question, what if I'm throwing lots of game objects ...
0
votes
0answers
79 views

Unity Mecanim Glitch

I am used to using the old animation, but I wanted to start using Mecanim. Here is an image of a creature I modeled with some animations, in blender, in my unity scene: And here is the blend import ...
0
votes
0answers
432 views

Slope polygon collider 2D causing box collider 2D to 'bump' while sliding on it

I'm doing procedural terrain generation. So far I've created the mesh, and attached a 2D polygon collider to it. The terrain is made up of hills going up and down. After doing so, I put a 2D rigid ...
0
votes
0answers
353 views

Box2D Soft Body Wheel in Unity3D

I was watching this video made with IForce2D, its about creating soft bodied wheels in box2D. http://www.youtube.com/watch?v=F-aDMZUVw0c I wanted help in being able to increase the Radius of the ...
0
votes
0answers
75 views

VertexColor shader is not working correctly in built application

I want to change the vertex colors of my mesh. The light sources must not affect the objects with this shader, its lighting must be determined only by its vertices colors, so I turned the Lighting ...
0
votes
3answers
376 views

Applying a torque to a different centre of mass

In Unity I have an object with a circle collider attached to it and when I apply a torque to this object's rigidbody2D, it rotates as expected. However, I have now attached a sub-object to this object ...
0
votes
0answers
43 views

ColorMaterial:AmbientAndDiffuse equivalent for CG\HLSL

I have this shader written on shaderlab, which replaces Ambient and Diffuse values of the material, because I need to tweak vertices colors from the script. Shader "VertexSimple" { Properties ...
0
votes
0answers
286 views

NavMesh agents pushing other NavMesh Agents in Unity Pro

Using the NavMesh system in Unity, I created pathing system for my player character as well as the enemy AI. When a group of enemy NavMesh Agents surround my player character, they can be pushed out ...
0
votes
1answer
558 views

How to stop transform.position from being modified when adding child object in Unity

I suspect there is a well-known and easy to explain reason for the behavior I'm seeing, but I am having difficulty explaining it. (And likely not able to Google for the answer.) When adding a child ...
0
votes
2answers
208 views

Use both AddForceAtPoint and change velocity property?

I'm using Rigidbody2D for some game objects. It seems that when I AddForce() or AddForceAtPoint(), the game objects are mostly affected on the Y axis and hardly at all on the x axis. I don't ...
0
votes
0answers
193 views

Unity WebPlayer : WWW GET Requests fail in webplayer only, not in editor

My question is about my game requesting data from my server-side cloud-based storage (I have the option of free public Dropbox or Amazon S3) via GET and the WWW class, and it not working only in the ...
0
votes
2answers
2k views

Why would Rigidbody.AddForce not resulting in movement of my objects?

I'm trying to get my card objects to spread out randomly but nothing happens. I know the method is called cause I get the prints in the console for each card. But they don't move. No errors reported. ...
0
votes
0answers
656 views

Dragging an object by touching on Android

I am trying to move and object by touching it and dragging. I am testing it on my Samsung Galaxy SIII. I have used the following code. For some reason it moves faster than my finger. It should always ...
0
votes
1answer
374 views

Creating a curved mesh on inside of sphere based on texture image coordinates

In Blender, I have created a sphere with a panoramic texture on the inside. I have also manually created a plane mesh (curved to match the size of the sphere) that sits on the inside wall where I can ...
0
votes
1answer
158 views

Efficient approaches to updating adjacent grid tiles when one tile is disabled?

I'm trying to update the surrounding grid of tiles if one of them is disabled (not removed). For example, imagine we have a grid of tiles each with x representing one texture: x, x, x, x, x, x x, x, ...
0
votes
0answers
57 views

Tilemap mesh issue with z, -z axis

I don't understand why the created mesh is upside down if z ( z*tileSize ) is positive, the mesh is then rendered with the texture looking down. With "-z", the mesh texture is looking up correctly, ...
0
votes
1answer
175 views

Unity3d and Windows 8 run game in frame

How do I set Unity3D to run my game on Windows 8 in a fixed size frame (with a border around it) and not in fullscreen? I tried setting this in the Unity script and in the final C# project, but ...
0
votes
1answer
110 views

3rd person game with rigid body

Im making a 3rd person 3D game. I have a little capsule shaped player controlled drone at the moment that moves on a flat surface. Y axis is locked. The Game object contains a script and then the ...
0
votes
0answers
106 views

Unity3D object fill shader

I've been researching this for a while, and had no luck yet. I figured I'd ask here to see if anyone had any good ideas. Essentially what I want is a shader that can make only part of an object ...
0
votes
0answers
458 views

How do I use UsePass in a shader in Unity when the pass does not have a name?

I'm trying to use passes from a given built-in shader in Unity. The docs say that the syntax is UsePass "Name". The problem is that built-in shaders don't have names on their passes. How could I do ...
0
votes
1answer
163 views

Make Gameobject Stand On Surface Facing Certain Direction

I want to make a biped character stand on any surface I click on. Surfaces have up vectors of any of positive or negative X,Y,Z. So imagine a cube with each face being a gameobject whose up vector ...
0
votes
0answers
230 views

Design virtual resolution for 2D development in Unity

I came to Unity with Cocos2D-X experience in mind. In Cocos2D-X, I can choose a "virtual" screen resolution size to rely on the entire game during development and the game will automatically adapt to ...
0
votes
0answers
70 views

“has no motion” warnings

When I reimport my project's Library, I get lots of warnings such as State combat.Ghoul Attack has no motion but I have no idea why. In this specific case, I looked up Ghoul Attack. Here's the ...
0
votes
0answers
169 views

dynamic 2d texture creation in unity from script

I'm coming from HTML5 and I'm used to having the 2D Canvas API I can use to generate textures. Is there anything similar in Unity3D? For example, let's say at runtime I want to render a circle, put 3 ...
0
votes
0answers
37 views

Gui not showing when accessing AudioSource.Volume

I have A GuiManager class A SoundManager with 2 AudioSources SfxPlayer is created in the inspector on the same object as SoundManager MusicPlayer is created programatically within the SoundManager ...
0
votes
0answers
707 views

Multiple audio sources on a single gameObject in unity

So, I have an audio system set up wherein I have loaded all my audio clips centrally and play them on demand by passing the requesting audioSource into the sound manager. However, there is a ...
0
votes
1answer
317 views

Making a new instantiated prefab as a child for existing GameObject

I've been searched about how to make these fruit to move as the basket movement if it collided with it, and I've been found that if I want to perform this I've to let these fruit to be a child to ...
0
votes
1answer
161 views

Getting and playing AudioClips by string name

Is there anyway I can get an audioclip by the name it has in the assets folder? Or will I always have to make a reference to it by dragging and dropping the clip on a SoundClip in the inspector?
0
votes
1answer
496 views

Sound Manager class in Unity

Starting with Unity having had experience of XNA im not sure if the way i want to solve my problem is the correct way. So id like the opinion of more experienced people. I am doing a 2.5D game and ...
0
votes
0answers
138 views

Terrain effect animations in Unity

I am trying to find out how can I make terrain effects animations that are possible at any given position. I have though about this and I can't seem to find any ideal solution using the following: a) ...
0
votes
1answer
315 views

Use light cone/range as a Trigger

I was wondering, in Unity 3D, how I could do something with the Spot Light (Range/cone) as a trigger? Since it would be very interesting to be able to manipulate whats actually in sight of Light ...
0
votes
0answers
358 views

Shoot Bullet Towards Touch Position : Unity3D

I have one object shooting in x-y plane..,x means horizontal and y means vertical direction.. My bullet is capsule game object with rigidbody component. Now Whenever i touch on the screen , i want ...
0
votes
0answers
309 views

Unity3D Standalone player crashes on ALT+TAB [on hold]

EDIT: After a bit of testing I've figured out that the problem is caused by Directx 11. When I build without that enabled everything is fine. So I've ran in to an odd error with my Unity standalone ...
0
votes
0answers
103 views

Parse and Unity on Windows Store App

I'm using Parse in my Unity project, but I'm stuck using it on Windows Store App. When I try a simple command such a CountAsync() on a ParseQuery I get this error : MissingMethodException: Method ...
0
votes
0answers
373 views

AssetBundle local file path on iOS

I have been testing AssetBundles and I get them to work on the editor with both Load and LoadASync functions. But when I build to iOS I keep getting the following error when loading: You are trying ...
0
votes
0answers
174 views

is there a way to check if an animatorcontroller has a parameter?

With mecanim, if you try to set a parameter that doesn't exist, it logs a warning. It doesn't throw an exception or return null or anything useful like that. So if I set a parameter very often that ...
0
votes
1answer
618 views

How to make custom shaped holes in terrain

So I'm trying to create a game where you fit certain shaped objects into the hole that fits them (similar to the young children's game with different shaped blocks) in Unity 3D. I've encountered a ...
0
votes
1answer
451 views

Input events slow on unity Update function

I have this running on the Update() on Unity. I am trying to create a page swipe feature on my game, but the problem is there is a half second delay when printing "dragging" to "end drag" when I ...
0
votes
0answers
265 views

Trouble with textures in Unity and Android

I am trying to dynamically create textures of a single (random) color via script. In the Windows Editor it works, but in Android it fails and my Quad gets a magenta color (i.e. missing texture). I am ...
0
votes
0answers
1k views

Normal mapping for Android and iOS

I'm making a mobile game for Android and iOS on Unity. At the moment I am researching and designing the technical aspects of the game. Since it is not plausible to use highly detailed models for ...
0
votes
0answers
96 views

Follow sinus with absolute value

I would like to make an arm follow the sinus of the ball. When I add an absolute value to the ball (on the y axis) to get a more realistic bounce, the ball is going 2 times faster. How could I ask ...
0
votes
0answers
332 views

Unity iOS optimization and draw calls

I am curious of what methods I should approach in optimizing my Unity project for iOS hardware. I have very little image effects running (directional light with low res shadows) and I used the combine ...
0
votes
0answers
31 views

How can I get url variables in unity flash? [duplicate]

I recently looked into getting url variables in unity webplayer, I got the full url including parameters form javascript and parsed it in C#, but now in flash I cant call javascript, so how can I get ...
0
votes
0answers
250 views

How to use Unity3D Social for OSX?

I can't seem to find any documentation using the Social APIs with OSX. I can successfully use the iOS Social Libraries, but when I translate it over to OSX, it doesn't do anything. Also please refrain ...
0
votes
1answer
330 views

2D sort for inventory items?

I asked this question some time ago. Now I ended up with just a sorter method that will sort the items based on their bulkiness/nSlotsRequired. Here's what I'm doing: I store all the items I have in ...
0
votes
0answers
105 views

Split testing on Unity

What is the best way to do split testing / A|B-testing in Unity using Flurry and Google Analytics? From what I read, dividing the users on the first launch using PlayerPrefs to group them either with ...