Unity is a cross-platform game creation system that focuses on easy art pipeline process. It consists of a game engine and an integrated development environment. The game engine's scripting is built on Mono.

learn more… | top users | synonyms (1)

0
votes
1answer
9 views

Unity free look camera on two axes. How do I do it?

I'm new to Unity and c# but have programming experience... I have a a simple "game" in Unity that shows one sphere orbiting another. How do I allow the camera to be moved by the user in a "free ...
0
votes
1answer
13 views

In Unity3D, what ways can I improve the batching with a single texture atlas and four-point material?

I'm building a randomized city terrain with a set of planes, custom 4 vertice square made in Blender. I've got a texture atlas working so that it draws on a single material and texture, but it's still ...
0
votes
1answer
19 views

Shmup Unity, create an enemy spread shot to the player

Following this lecture: http://www.shmup-dev.com/forum/viewtopic.php?f=6&t=347 , i created a bullet that shoot from the enemy directly to the player, in a straight line. Now i want to create 3 ...
0
votes
0answers
7 views

Unity: Set Zoom's Center XYZ point

I have my pivot/orbit camera set up: http://pastebin.com/2c7buUjV When I zoom in/out it snaps to the center of the sphere, then starts the zoom. I want it to zoom from where the camera currently is. ...
0
votes
1answer
16 views

With a Texture Atlas that has 128x128 tiles, how can I use that in Unity3D?

So I've got a working texture atlas that has tiles fitting 128x128. However, I can't quite figure out how to use them. I know it's probably got something to do with ...
0
votes
1answer
54 views

Tower defense game structure? [on hold]

I've made a simple Tower Defense game in Unity with C# scripts. Currently it only has a working Tower and some minions walking by a path to the players base, but eventually I going to add more towers ...
0
votes
1answer
57 views

How to customize a character with new objects (clothes, body parts) in a 3D game?

how do we customize a character in a game by adding, for example, a different clothing? The character has an armature, made in Blender, if I add a new object with the game engine, I would have to copy ...
0
votes
0answers
21 views

Unity: Set X,Y,Z default position of camera [on hold]

I'm trying to set the default value of the camera. I want it to be 5,5,-10. using UnityEngine; using System.Collections; public class OrbitCam : MonoBehaviour { //The target of the camera. The ...
0
votes
1answer
38 views

How to store variable inside an array unity? [on hold]

I was wondering how I can store these anims inside an array, because, the start function will be fired one time. I would like to be able to call these Animators more then one time. public ...
6
votes
5answers
1k views

Does Game Objects not visible to camera consume computer/mobile resources in unity?

In unity, let us suppose that I have some Game Objects in my scene that are not visible to camera and so are not rendered while the game is running. Will these Game Objects be consuming ...
0
votes
1answer
45 views

What is the cause of these WaitForFPS spikes and dips?

In Unity, moving the player causes the camera to jitter. I went to the Profiler, and I saw these spikes: On further inspection, all the yellow spikes were WaitForFPS(). I've tried every VSync setting ...
1
vote
0answers
11 views

Picking up objects and dropping object in untiy2d [on hold]

I want to add a functionality to make the player able to pick up certain objects and dropping them. When the player move towards the object he wants to pick up,when he picks up the object and move ...
-2
votes
0answers
25 views

how to write a player control script in C# or C++ in Unity? [on hold]

i am new to this kind of programming ,however i do have C# and mobile app development background but i have no idea where to start .. I want ot make a 2d player controll in C# or C++ or even java ...
0
votes
0answers
24 views

Need help with understanding how methods work and various other progamming noob problems [on hold]

So I'm currently working on a very small project - just a game based off of some of the things I've learned from unity tutorials. In the GameController script I have a method called GameOver that's ...
0
votes
0answers
9 views

for android platform , libgdx vs unity 3d [on hold]

i am android programmer and i like to code with Java , not JavaScript my question is very easy . i just like to choose between Libgdx and Unity , please help me . please compare Libgdx and Unity , ...
0
votes
0answers
30 views

Unity material is missing after compilation

I have a piece of code that signals the player that a projectile has hit its target. Everything works fine during the playmode, however after I compile it, it acts as if there was a missing material. ...
1
vote
0answers
43 views

Create an 2d Isometric map with tiles?

I'm creating a 2D Tower Defense game and I want it to be isometric. I'm creating it on the XZ plane in Unity(3D mode). I need the map to be based on tiles so I can seperate the monsters' path and the ...
1
vote
1answer
37 views

I can't drag'n'drop UI Elements from the hierarchy into a public field (Unity 5)

I just watched this Video https://unity3d.com/learn/tutorials/projects/survival-shooter/player-health and tried to drag'n'drop the UI-Elements on the matching script, just like they did. But this is ...
1
vote
0answers
16 views

Unity3D + Kinect V2 | How to detect people when they are standing side to device

I can't detect people when they are standing/walking side to device. I have used Miscrosoft's library for Unity3D to kinect and it works perfect when somebody stands direct front to Kinect device - ...
0
votes
1answer
37 views

Instantiating on a random node, provided the node is walkable, but what if it isn't walkable?

In my demo I have a GUI where the user determines the number of AI that will spawn. I would like these AI to spawn onto the walkable area of my Grid. So I choose a random position then get the node ...
1
vote
0answers
21 views

Change Camera Contrast in VR Game

Hello there Firends , I'm developing a Virtual Reality game in Unity. As in every VR game , i have 2 cameras for stereo rendering. I want to show the same object in each camera having different ...
1
vote
0answers
27 views

Why is Unity3D on OSX ignoring my XBox 360 controller?

I'm using a fork of the Tattie Bogle driver that has a signed kext. The System Settings panel shows all inputs correctly. One axis is configured in Unity3D 5 like this: Still, I don't see any ...
0
votes
0answers
8 views

Rotate gameobject on fix X and Y axis with touch

I'm using Unity 5, and I want to rotate an object using touch input. This works: target.transform.Rotate(touchDeltaPosition.x 3.0f,touchDeltaPosition.y 3.0f ,0,Space.World); The problem is it also ...
1
vote
1answer
356 views

Destroying Unity GameObject when it goes out of camera during runtime

I have this GameObject instanciated in unity - void Start () { GameObject myRoadInstance = Instantiate(Resources.Load("car"), new Vector3(5, 5, 5), ...
1
vote
2answers
28 views

How can I manually call/fire OnTriggerExit() for colliders a trigger is inside of in Unity?

In Unity, the OnTriggerExit() method is not called/fired (not sure if it's an event or not) when an object is disabled or destroyed within it's collider. In comparison to it being fired is an active ...
0
votes
0answers
18 views

How to build Isometric tiled-based TD map [on hold]

I'm planning to create a 2D isometric Tower Defense game in Unity3D. I want to make it tile-based so I can split the tiles and give them different functions, ex I want the player to create different ...
0
votes
0answers
41 views

Instant replay system by saving frames to memory in Unity

When designing an instant replay system that will playback the last n seconds of gameplay, I've seen people essentially record all of the game events and game object states and play it back. This ...
0
votes
0answers
19 views

Creating a custom collider shape in unity, and performance concerns

I want to create a custom chaped collider in unity to create point-defense triggers for objects. I have a spherical collider that triggers for attacking objects that enter it already. However I want ...
0
votes
0answers
17 views

How to quickly create meshes that have cutouts of other meshes?

I have a mesh and I would like to quickly create planes (or boxes) that have cutouts in the shape of the silhouette that mesh, but rotated at various angles. I would like to have a system to which I ...
0
votes
0answers
12 views

PlatformEffector2D “Collision Pop” Avoidance?

I have noticed that when "One Way" is checked, and you have your character jump up through the platform, the character pops up to the top as a way to resolve the collision of the player and the top ...
0
votes
1answer
45 views

How to create planets

I need 3D planet models for my game. I can add objects onto the planet and add the sky by myself, but are there any good modeling tools for creating big spheres that would allow me to add mountains ...
1
vote
0answers
21 views

Glow shader limited by the texture area

I'm working on a glow shader (for 2D engine Futile relying on Unity). It works OK but the effect is limited by the texture area. Except from adding a lot of empty pixels around the textures (which ...
-2
votes
0answers
17 views

How To Modal Something In Unity [on hold]

Currently I Have Found Out I Can Import my Blender Modals Into Unity But What I Am Wondering Is Does Unity Have a Way To 3D Modal Stuff Or Is It More For Putting The Game Together.
0
votes
1answer
38 views

Make my Tower continously fire at enemy while inside collider?

So I've made a Tower script in c# that spawns a projectile that then fires at the enemy gameobject. However, because I'm using the OnTriggerEnter() function it will only fire as many times as ...
0
votes
1answer
29 views

Is transform.forward mutable?

Suppose I have a GameObject, and I want it's transform.forward to be facing up. Is it possible to change it as seen below? public class Main : MonoBehaviour { void Start () { Vector3 ...
0
votes
0answers
25 views

Particle system ONGui()

I have some scripts which uses OnGUI() method and they are attached to my GameMenu object. I need to play a particle system on the scene while the GUI scripts are active. When I do that I cant see the ...
0
votes
1answer
31 views

Unity Character jumping to the direction of the key pressed and not moving in any other until grounded [on hold]

I've been trying to figure this out for about 3 hours now, I have a first person controller script based on the Unity Standard Assets one and I'm trying to figure out how to jump to the direction of ...
0
votes
0answers
17 views

How to change background 2D game when level up [on hold]

I want to change background 2D game when level up, but game runing.(like endless running game) People can help me. I use 2D unity. Thank you.
0
votes
2answers
40 views

Character on spherical terrain

My game is played on a big spherical world. Made up of a big spherical mesh with sphere collider, with 'gravity' at it's center (gravity for objects is controlled trough scripts). Now if I put a ball ...
0
votes
1answer
31 views

StopCoroutine is not stopping my coroutine in Unity

I'm getting some attacking to work with my units and I noticed that the coroutines seem to start adding up even after the StopCoroutine(IEnumerator) as need called. I dug around on ways to perform ...
-1
votes
0answers
22 views

how to influence the vertex? [on hold]

// Attach this script to a camera and it will // draw a debug line triangle triangle // at the triangle where you place the mouse. function Update () { // Only if we hit ...
0
votes
1answer
23 views

Check if is object in camera field and not covered by other object

I know how to check if object is in camera view but how I can check if that object is cover by something elese? In my case I want to turn on or off some effect when I look at light. At this moment my ...
0
votes
0answers
37 views

How to update gametag and call a new animation? [on hold]

I want to change the tag of an game object when a new animation is triggered by the animator parameter. This works, but when my gameObject tag is changed from "fire0" to "fire25" it doesn't change to ...
1
vote
0answers
22 views

Unity - C# - Angle tile not instantiating [on hold]

I'm currently connecting two rectangles with a 'L' shaped line. I have written the code so that it cycles for every position from one rectangle to the other and instantiates some gameObjects that ...
3
votes
5answers
96 views

How to “merge” multiple intersecting circles so that only the outer edges of each show?

In my RTS (In Unity) each unit or building has strategic circles in a similar fashion to SupCom. If you have multiple units or buildings selected it looks like the picture to the left. I want to make ...
1
vote
1answer
96 views

Adding some recoil to the Camera so that the crosshair is pushing to the sky (FPS game)

I just want to add some recoil to the camera, but I can't find a working script. It's an fps, so I take my mouse axis to rotate the camera. And now I want a pushback to the top, so that the camera ...
0
votes
0answers
24 views

Efficient billboarding sprites in Unity 5

What's the most efficient way to do billboarding sprites in Unity 5? I want to make a forest of sprite trees in 3d space. Those sprites need to face the camera at all times. I am working on VERY ...
-1
votes
0answers
42 views

How do I create a circular progress bar in Unity3D 5?

I am new to programming and Unity3D. I want to show a circular progress bar starting invisible and growing in 3 seconds to a circular line when reloading is done. How can I do that?
2
votes
1answer
52 views

Unity : callbacks in component based design

I am trying to use component based design in Unity3d v5. If I have 2 separate C# scripts attached to enemy ships like below: Script1.shipDead() - Remove game object and show explosion animation ...
-1
votes
1answer
34 views

'The thing you want to instantiate is null' - unity error when instantiating

I have a Game Object called 'car' in my Assets folder. I have this code in C# unity to instantiate it. GameObject car; void Start () { Vector3 position = new Vector3(5, 5, 5); ...