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
0answers
16 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 ...
0
votes
0answers
6 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
14 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
10 views

Need help with understanding how methods work [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, and influenced by "AaaaaAAaaaAAAaaAAAAaAAAAA!!! for the Awesome" ...
0
votes
0answers
5 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
26 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
29 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
0answers
23 views

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

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
13 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
35 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
14 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
24 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
351 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
15 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
36 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
16 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
42 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
20 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
34 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
26 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
39 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
28 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
21 views

how to influence the vertex?

// 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
20 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
35 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
93 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 ...
0
votes
0answers
47 views

Adding some recoil to the Camera (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
41 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
33 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); ...
0
votes
2answers
44 views

Instantiate a prefab on unity and make it appear at a specified coordinate

I have a prefab called 'road'. How can I instantiate it using C# script so that the instantiated object appears at coordinate (5,5,5) ?
4
votes
2answers
220 views

Callback on Derived Class?

How does Unity3D implement their system where if a class is derived from MonoBehaviour and has certain methods like Awake() or Update(), they are called accordingly? I want to do a similar system for ...
2
votes
1answer
89 views

Unity C# - My parameter 'campfireNew' does not exist (SetTrigger)

I'm trying to set a SetTrigger parameter to call a different sprite animation on a campfire. I tried this also with a boolean, yet again the same error. parameter 'campfireNew' does not exist. Anyone ...
0
votes
1answer
81 views

Using collectable items to change a gameobject Unity

I’ve been working on a 2D platform side scroller. I’m rather new to Unity and C#. Basically what I’ve achieved so far is a character which can collect Logs throughout the game and those logs are ...
1
vote
0answers
38 views

How can I get the pressure of a touch in Unity?

Does anyone know how to get the getPressure function from the Android API into Unity? Or is there another way I can access the pressure of a touch?
2
votes
1answer
31 views

Change Tag of Instantiated Clone

In my game there is a bird flying up and a stream of containers (baskets) is moving from right to left of the screen in the bottom. Baskets are being Instantiated on right and get destroyed when they ...
3
votes
1answer
30 views

Unity - C# - Overlapping Rectangles not separating

I am Instantiating a lot of Rectangles of different sizes (ranging from 3 to 18 units) and they all have attached this script, which should cycle through all the GameObject List which contains them. ...
10
votes
3answers
1k views

Looking for some insight on programming design for attacking and attack types in a game

So, I'm starting to introduce attacking to our 2D space RTS (This is in Unity, so it's component driven). Initially it was as simple as "enemy in range, damage applied". However there will be multiple ...
0
votes
0answers
25 views

Why does my Unity Android export fail with “No resource identifier found”?

When I try to export my Unity game to Android, I get this error: CommandInvokationFailure: Failed to re-package resources. See the Console for details. F:\Android SDK ...
4
votes
2answers
500 views

Alternatives to remove Unity splash screen after developing a game with the free version?

I developed a simple game using the free version of Unity. I want to understand how much it would cost me to remove the Unity Splash Screen to know if it's worth it. Right now Unity professional ...