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.
-1
votes
0answers
4 views
Unity problems with ontriggerstay and input key [on hold]
I use OnTriggerStayto check if my Player is collide with another object. When the user pressed E, it should count +1 to the counter. But this will be fired more then one time. Searching on the ...
0
votes
1answer
14 views
Camera goes upside down on oribt
I am new to Unity and I am working on a camera code to rotate around a map in game also zoom in and out. I was looking around and found this code to get me started. My intent is to have a camera ...
0
votes
1answer
10 views
Script attached to one button triggers other buttons too in unity
As you can see in the image above, I have 4 buttons.
I have attached a C# script to only one button to change the scene on click.
Now the scene should change only when I click on the button to ...
0
votes
1answer
12 views
submeshes and dynamic batching doesnt work as expected
I'm duplicating one object with submeshes frequently, and assigning a random material from five materials to each submesh. There is batching happening, but it's not quite as efficient as I would have ...
0
votes
1answer
33 views
Best way to constrain character to a path?
I'm in the process of developing a level-based runner for mobile phones, and I've hit a wall when deciding which method to use to get the character to move through the level.
Basically - I need my ...
0
votes
1answer
22 views
Unity3D The name IEnumerable does not exist in the current context [on hold]
Trying to use Parse with Unity to run a Query like so:
var query = ParseObject.GetQuery("GameScore")
.WhereEqualTo("playerName", "Dan Stemkoski");
query.FindAsync().ContinueWith(t =>{
...
0
votes
0answers
26 views
Combat System For RPG/RTS [on hold]
I'm working on a RPG game, and I'm stuck in an indecision loop for how to proceed with combat. I have two different ideas and can't decide which one I like more.
Using a component-entity based ...
0
votes
0answers
5 views
Change pointerDrag target during a drag
In Unity, I am trying to change which GameObject is receiving drag messages from my EventSystem's StandaloneTouchInputModule.
E.g., while I'm dragging one object, a script reassigns who is receiving ...
2
votes
1answer
33 views
Do I have to commit the downloadable assets for Unity to the repo? Or a reference for the team to download them?
QUESTION (Short version)
I am going to use the Unity Test Tools asset to do unitary testing.
Q: Do I have to commit the Unity Test Tools to my repo? (using git, by the way).
CONTEXT
Team / Workflow
...
1
vote
0answers
37 views
Recreating iPhone Home Screen in Unity
I am trying to recreate a UI menu that has functionality similar to the iPhone's home screen:
If a user drags anywhere on the menu (including on a button), it should drag the whole page left/right ...
2
votes
1answer
34 views
Is OnMouseUp()'s behavior intended?
Version: Unity3D 4.6.2f1
I have a grid of tiles (Cube GameObjects with a Tile script attached). They are positioned at their index location [x][y] = (x, y, z=0) World Coordinates.
Below, I try to ...
0
votes
0answers
19 views
Cameras overhead
I'm planning on using several cameras on Unity with different size to create a parallax background.
I'm concerned that addidng maybe 3-5 cameras just to render the parallax background is an overkill.
...
0
votes
2answers
43 views
How to Instantiate two Game Objects at the same time in Unity3D [on hold]
I have two empty game objects (BlueTeam and RedTeam). The BlueTeam needs to set its opponent as the RedTeam and vice versa. When a team is instantiated it as to generate its players and place them on ...
0
votes
1answer
24 views
GameObject scope over RPC call
Debugging my code I faced some unexpected behavior.
I called an RPC using uLink.NetworkView on the server passing some parameter including a GameObject tagged as Player.
Inside that RPC I make a ...
0
votes
1answer
75 views
How to detect the edge of a platform?
I have create a enemy AI script. These enemies are animals in my game.
What I want is that the enemy can detect the edges of a platform.
using UnityEngine;
using System.Collections;
public class ...
0
votes
0answers
19 views
Raycast Masks not working Unity3D
I'm having a problem with filters/masks when raycasting.
I've created a LayerMask and then in the inspector selected the layer I want to ignore when Raycasting. however then I print out the name of ...
1
vote
1answer
19 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
21 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
33 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
8 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
22 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
64 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 ...
1
vote
2answers
101 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
24 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
45 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 ...
10
votes
6answers
2k views
Do Game Objects which lay outside camera view 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
50 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
12 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
27 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 ...
-1
votes
0answers
28 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
11 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
34 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
50 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
49 views
I can't drag'n'drop UI-Elements from the Scene-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
17 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
38 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
22 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
12 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
359 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
30 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
20 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
13 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
47 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
23 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
18 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 ...