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
1answer
30 views

Bounds Queries for Simplex Noise Function

How do I construct a Bounds Query for 3D Simplex Noise? [This is more or less a follow-up to my last question] Simply put, for an arbitrary octree node (cube) in my volume (a section of Unity3d ...
0
votes
0answers
16 views

Can I export animated models from Unity? Into what formats?

I have an animated 3D model from the Unity Asset Store that I would like an animator to touch up. But they need it in a format they can use (Maya or... something else). All I have been able to find so ...
2
votes
3answers
272 views

Should I use scenes in Unity for menus?

I assume scenes are for different levels, but should I use them for menu screens or is there a specific tool for menu screens?
0
votes
0answers
33 views

Why is this code not being responsive on mobile devices with unity? [closed]

So I am building a stupid simple game where all you need to do is click some balls on the screen and if I were to do this in java it would be no problem. How it works is when you click the screen it ...
2
votes
2answers
77 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
659 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 ...
1
vote
1answer
123 views

How to compress Unity apk output?

I made a game with Unity but the size of .apk file got so large, it is about 70mb... Is there some way that I can compress my apk file?
1
vote
1answer
145 views

Depth write and depth test in Unity

Scenario: several objects (o1, o2,.., on) have to be rendered with the z test disable, but the z values must be written to the depth buffer. In another pass, some other objects (t1, t2,..., tm) need ...
0
votes
1answer
108 views

Problem with Raycasting in a 2D Game

I'm new to using unity and came across a problem when I was following a tutorial. The game is in two dimensional space, and when my player walks over a certain tile the detection never goes off. ...
0
votes
0answers
36 views

Unity's Multiplayer [closed]

Hi just a quick little introduction about myself I'm currently a student attending New England Institution of Technology for Video Game Development and Simulation Programming. Once I head back to ...
0
votes
0answers
47 views

Rotate object with accelerometer?

I'm making a game where you control a platform with balls falling ontop of it, and you have to balance the balls and prevent them from falling off. I'm currently using a mouse to control it with this ...
0
votes
0answers
21 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 ...
0
votes
0answers
51 views

Why I need to use Raycasting [closed]

I have come across pieces of code that can detect collision with other objects using OnTriggerEvent(Colider otherobject)that do not use raycasting, then why use Raycasting, please?
0
votes
1answer
45 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 ...
0
votes
1answer
69 views

Make GuiText responsive

I'm using C# code to make a responsive GuiText. I was abel to make a responsive GuiTexture, but I'm struggling with doing the same for a GuiText. Code for the responsive GuiTexture using ...
5
votes
1answer
156 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
1answer
36 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 ...
-1
votes
0answers
29 views

Create Server for Online Chat in Unity2D? [closed]

Im trying to make a simple online chat for Mobile Devices in Unity2D where users will join to these chat rooms and start the chat. I already made the chat and now I need to make my server. Any hit to ...
0
votes
1answer
234 views

Mesh Manipulation - changing vertex data dynamically

I have am trying to achieve Mesh Manipulation of any mesh based on User Input mostly sliders, example of what I am trying to do is http://www.youtube.com/watch?v=-oMxVGmeO-s . I am not sure whether to ...
1
vote
1answer
145 views

Animating feet seperately from the body

I have a character and I would like to animate a walking animation for it. However i get the following result when I animate it: (ignore the green lines/ markers/ sound) As you can see the foot ...
0
votes
1answer
84 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
2answers
137 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
0answers
27 views

I have a bones misassignment and I need to know how to fix it [closed]

See here for the problem. Youtube-Video The legs are rotated over each other and the animation looks spastic. What is the misalignment's cause and how to fix it.
0
votes
1answer
22 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 ...
-1
votes
0answers
43 views

Spawning objects at 3 Diffrent locations randomly [closed]

I'm new here and I have this simple practice code. I would like to spawn objects on three different locations of my boxes. One ball will spawn then after around 1 second, another one will spawn in ...
2
votes
1answer
42 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 ...
0
votes
2answers
39 views

Using Smaller Textures in Unity on Older/Smaller devices

In Unity, when you have MipMapping selected, will this cause the full size texture to always be brought into memory? I have a game which runs on high end mobile devices with ultra-high resolution ...
3
votes
5answers
157 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
3answers
92 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 ...
0
votes
1answer
53 views

Effect culling on uneven terrain

I'm trying to integrate a "ground particle" effect (like a fire-circle or similar) in Unity3d, however since i'm using uneven terrain as my terrain mesh, the effect gets culled behind terrain parts ...
1
vote
0answers
49 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 ...
1
vote
1answer
480 views

Create sprite renderer using custom material

I have done following thing. Create Material Attach sprite with texture type as Texture Add sprite renderer component to game object Assign material to it that I create in last steps There is no ...
1
vote
1answer
31 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
2answers
102 views

Android Activity access Unity Classes

I have made my own C# classes in Unity, is there any way I can access these classes from the Android Activity that starts the UnityPlayer? Example: I have a C# class called testClass in Unity: class ...
0
votes
0answers
25 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 ...
4
votes
2answers
200 views

What is the best methodology in mounting customizables to a 3d avatar in Unity?

Someone I know suggested just making every customizable on the model then just hide the non active ones. But that doesn't sound very efficient for me. So my question is what is the best method to use ...
0
votes
1answer
261 views

How do I set up Unity for Eclipse?

I want to use Unity on Android. How can I integrate Unity with Eclipse? I searched this site and various forums, but found nothing useful.
2
votes
2answers
94 views

Finding diagonal objects of an object in 3d space

Using Unity3d, I have a array which is having 8 GameObjects in grid and one object (which is already known) is in center like this where K is already known object. All objects are equidistant from ...
1
vote
3answers
202 views

How to rotate a 3D character on top of a plane with an isometric picture on it

How to calculate the angles of the 3d charater so that it fits into the isometric environment projektet on a 2d plane? Also, how do you calculate the rotation of my character? What I want to achieve: ...
1
vote
1answer
500 views

Collider2D and Rigidbody2D, how do they work?

I have been learning JavaScript and Unity for a week now. I learned how to make Cube as a Ground and another Cube as a player and I used this code to make the Player Cube move forward and backward and ...
0
votes
1answer
42 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
40 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
191 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 ...
13
votes
2answers
1k views

How do I blend 2 lightmaps for day/night cycle in Unity?

Before I say anything else: I'm using dual lightmaps, meaning I need to blend both a near and a far. So I've been working on this for a while now, I have a whole day/night cycle set up for renderers ...
1
vote
2answers
94 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
2answers
117 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 ...
2
votes
1answer
221 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?
3
votes
1answer
94 views

Unity's default integration method

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

Camera movement and threshold not working

I have a platformer that is in progress, part of this has a camera which I only want to move when the character moves out of a certain threshold, to try to accomplish this I have the following if ...