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
38 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
1answer
1k views

How can I make caves with Unity's terrain creator?

With Unity's terrain creator, I can't simply make a "hole" on the mesh. I don't know how I would make cave-like structures other than using "rock" meshes for the roof (wich will indeed look weird) ...
0
votes
1answer
681 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.
3
votes
1answer
74 views

How can I switch between texture atlases based on the iOS version?

How can I switch between atlases (with different resolutions) in Unity based on the runtime iOS version?
0
votes
0answers
30 views

Is there a way to use a plugin with the free version of the Unity3D editor on OSX?

I'm making a plugin for Unity3d. On windows you build a .dll and put it in Assets/Plugins. This is only supposed to work with the pro version of unity but you can get it to work with the free version ...
2
votes
2answers
122 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 ...
4
votes
2answers
4k views

Can I make a mirror with Unity Free?

If I understand correctly, render textures are a feature of Unity Pro, and that is the best way to create mirrors, TV screens, and so forth. If I am wrong, please tell me. What I would like to know is ...
1
vote
1answer
764 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 ...
14
votes
3answers
13k views

How can I make huge terrains in Unity?

How can I make extremely huge terrains in Unity? It seems like I can set width and length to large values. But the Heightmap resolution only goes up to 4097 and the Detail resolution only goes up to ...
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 ...
1
vote
2answers
96 views

Unity plane that is normal to Z axis

I want to create a plane that will be normal to the Z axis, but I am having difficulty visualizing what rotation it needs to have. I want to have a top-down view upon the plane such that I can use ...
0
votes
1answer
223 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
1answer
65 views

Getting a pixel of Sprite at the cursor position in Unity

Summary: I've been trying to figure out a way to use simple box colliders as a nice and efficient "first pass" collider. For the "second pass", I want to check that the area clicked has an alpha value ...
0
votes
1answer
86 views

Gun Bobbing Algorithm Math Explanation

I stumbled across this really neat algorithm which I don't fully understand. It simulates a camera's bobbing effect commonly witnessed in first person shooters while running/walking. I'm mainly unsure ...
0
votes
2answers
508 views

Using crittercism with Unity

I want to use crittercism with my Unity project. In Unity I am developing a game for iOS and Android platform. I did enough Google searching to come to the conclusion that Unity doesn't support this ...
0
votes
2answers
76 views

A*Pathfinding lose target after spawning from script?

I have been using A*Path finding to enable object tracking. It works fine if I have both objects on the scene at the same time. However, if I were to use a script to spawn the seeking object ...
0
votes
1answer
35 views

How to make it two seconds for Time.time?

var targetscript : Diamond; var red : Color; var orange : Color; function Start () { gameObject.camera.backgroundColor = red; } function Update () { if (targetscript.score > 4) { ...
0
votes
1answer
21 views

Align SpriteText position

i have this function which aligns text. static function AlignTxt(obj : GameObject, txtAnchor : SpriteText.Anchor_Pos, txtAlign : SpriteText.Alignment_Type) { ...
1
vote
2answers
128 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 ...
2
votes
2answers
193 views

Executing Components in an Entity Component System

Ok so I am just starting to grasp the whole ECS paradigm right now and I need clarification on a few things. For the record, I am trying to develop a game using C++ and OpenGL and I'm relatively new ...
1
vote
1answer
67 views

How can I calculate the visible area of my camera in world space and take zoom into account?

I am trying to get the bounds from an orthographic camera in Unity which take into account the current orthographic size (zoom). I thought that I could use the cameraToWorldMatrix to transform the ...
0
votes
2answers
43 views

How to iterate through the frames of an AnimationClip in editor mode

I'm working on a 2D game, using spritesheets as the basis for four AnimationClips. (Every frame from the spritesheet is a keyframe in the animation.) I'm trying to step through the frames of these ...
0
votes
1answer
56 views

Calculating distance travelled

I am working on a road fighter kind of game. The game has its tracks moving to give the effect of car movement. The car accelerates and decelerates as expected with certain keys pressed. But How do I ...
2
votes
1answer
75 views

Accessing the command line from in-game?

Is there a way to interact with the command line (Linux/Windows) from in-game using a game engine such as Unity or Unreal? I would like to have the user be able to jump on a console or even just ...
0
votes
1answer
69 views

Avoidance Steering Behavior acting inappropriately

I've been trying to implement this steering behavior in Unity: Understanding Steering Behaviors: Collision Avoidance However, I'm getting strange results. Here's the code for the script, feel free to ...
2
votes
2answers
430 views

How can I manually draw a Sprite in Unity?

I'm creating a simple workaround on the unsupported prefab-on-prefab. I've thus created this simple class: [ExecuteInEditMode] public class PrefabLinker : MonoBehaviour { public GameObject ...
2
votes
2answers
2k views

2d metaballs with shader to give blobs of water effect?

I want to simulate blobs of water in a 2d game in Unity3d. One possible way of doing it is to use 3d metaballs moving in a 2d plane though this is very processor intensive. Do you think it would be ...
1
vote
1answer
57 views

Unity3D: terrain object's textures flickering on long distances

I'm making RTS project on Unity3D. I created terrain with Unity's standard Terrain tool, and added textures of grass, mood etc. on it. Then, for creating "man-made" objects of terrain (roads, ...
1
vote
1answer
177 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 ...
1
vote
2answers
155 views

(2D) Detect mouse click on object with no script attached

I'm creating a 2D project which does not have a character. So i created an empty gameobject and attached the script to it. In the script, i have declared other objects which are in the scene like ...
-2
votes
1answer
53 views

Not able to destroy the prefab

In the code, everything is working smoothly, only problem I am facing is that the Destroy(fuelprefabInstance) is not getting Destroyed in OnTriggerEnter Method though the print statements are clearly ...
1
vote
1answer
255 views

A few questions about integrating AudioKinetic Wwise and Unity

I'm new to Wwise and to using it with Unity, and though I have gotten the integration to work, I'm still dealing with some loose ends and have a few questions: (I'm on Unity 4.3 as of now but I think ...
0
votes
1answer
75 views

Unity Physics Material - Character Slides Too Much

I am currently working on a 2D platformer in Unity. I am using a prefab from the AssetStore for my character (The last paragraph contains a link to the prefab). The character has a circle collider for ...
0
votes
1answer
109 views

Surface creation algorithm using points cloud

I am looking for a realtime algorithm to create a 2D mesh using points. But I am quite confused. It seems that Delaunay triangulation can help me create mesh using point clouds, but Meta-balls seems ...
6
votes
3answers
2k views

Mixing threads and coroutines in Unity3D Mobile

I had a coroutine in Unity3D that downloaded a zip from a server, extracted it to the persistent data path, and loaded its contents into memory. The flow looked something like this: IEnumerator ...
2
votes
0answers
15 views

Disply unity build in flex

We have tried the following methods to upload sample Unity3D build to desktop application in flex:HTML Loader, NavigateToURL, iFrame & resolvePath but it only display the text content not the 3D ...
0
votes
1answer
134 views

How to calculate FPS and what factors affect FPS?

In this case, FPS means Frames Per Second and that means the number of frames that graphic hardware render in one second. I'm wondering what kind of stuffs could affect FPS? So, for some tests I ...
1
vote
2answers
91 views

How can I do something only after an animation has finished?

I'm making this 2D platform based game. Basically what I want is when the player walks into spikes (which have a "deadly" tag") it displays the animation that has the parameter of animate with the ...
1
vote
1answer
59 views

Creating charging particles using Shuriken

I've been trying to create a charging effect using the Shuriken Particle system for the longest time, and I've had little to no luck with it. I've tried setting different curves for the Force over ...
0
votes
1answer
43 views

Destroying the instance that instantiated the prefab

What I have so far: A fuel that has Fuel script attached to it. The fuel prefab is first instantiated from another script in its Start() method. problem: The Fuel script is such that it results in ...
0
votes
1answer
51 views

The object of type GameObject has been destroyed but you are still trying to access it

I am instantiating the prefabs time to time and I want them to be destroyed with in 2 to seconds as well. But I am getting the error that says: The object of type GameObject has been destroyed but ...
-1
votes
0answers
20 views

Instanting prefab in a random place and move it along the road

I have a track that is moving to give the effect that the player is moving. Now I want to have a fuel tank which happens to show up at random positions on the track. What I tried so far just sticks to ...
0
votes
1answer
30 views

Creating a prefab

Problem: The prefab script is never executed. What I did: Created a GameObject Created a prefab Dragged GameObject over the prefab Deleted the GameObject from Scene Added the prefab script to ...
-1
votes
0answers
42 views

Volumetric Clouds in Unity

How would I go about creating volumetric clouds in unity?
2
votes
1answer
180 views

Unity WheelJoint2D will not rotate when increasing motor speed

I have a wheel joint 2D attached to a game object in Unity: In its associated wheel script I am increasing the motor speed as described in the tutorial. public class Wheel : MonoBehaviour { ...
0
votes
1answer
54 views

Unity create water issue

I use daylight water in my project but by the default it has not got any waves or light tracing effects. But in some tutorials I see how the user add standard water asset and it has got beautiful ...
2
votes
1answer
113 views

Implementing Galaga Style Enemy Behavior in Unity

I've been trying to work on a space shooter with the idea of having enemies behaving like it is shown in this video : https://www.youtube.com/watch?v=3p7u8uCR6yw In the video above, enemies fly from ...
-4
votes
1answer
79 views

Which programming languages can I use with Unity?

I am fairly familiar with Unity and I know how to work most of the features within it. But I don't know what programing languages to use for my Unity game. I have heard that it might be C#, but I am ...
3
votes
1answer
58 views

Unity: White line at camera meaning

I'm a new comer to Unity. In Unity, when I click to main camera in Hierarchy view. I see 6 lines: one blue, one red, one green and three white. I know red/green/white lines for (x,y,z) location but I ...
0
votes
2answers
92 views

How to give a Jerk Effect when the player is moving left of right

float amttomove = Input.GetAxis("Horizontal") * playerspeed * Time.deltaTime; transform.Translate (Vector3.right * amttomove); Currently, I have above script in Update function to move ...