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.
0
votes
0answers
9 views
Trapping Asserts in Visual Studio
I'm writing a 2D game with some fairly complex off-screen logic, with plenty of room for bugs. My usual habit is to write code with a lot of Asserts in it. When an Assert gets hit I drop into the ...
0
votes
0answers
32 views
Good practices for game script structure?
I'm working on a third person platformer in the vein of the Ratchet and Clank / Jak and Daxter genre. I'm using Unity and learning as I go. One thing that I'd like to get sorted out before I get too ...
0
votes
0answers
5 views
Unity Failed to Repackage Resources
I was trying to integrate Admob into my unity game. I imported the Google Play Games plugin and the Admob Plugin , but I have been getting this error for the past couple days. ...
1
vote
0answers
19 views
Can I load data during the Unity splash screen?
Can I load data in the background while the Unity splash screen is up? If so, how? I have not been able to find any information on this in Google or the Unity Documentation.
0
votes
1answer
19 views
canvas not found in game view with unity
I am working on a GearVR app with Unity3D.I have an environement and I have placed a canvas in the scene.I have set the canvas Render mode to "World Space".But when I runned my project,the canvas is ...
0
votes
0answers
12 views
(Unity) setting interpolate option as none, works better than interpolate and extrapolate
I have a game that the character inside it uses fixed velocity to move, but it makes it's movement kinda jumpy. I googled it and found that if i set the interpolate option in rigidbody as Interpolate ...
0
votes
0answers
22 views
is it enough knowing c# to make android and ios games with unity game engine? [on hold]
Is it enough knowing c# to make android and I-phone games with unity game engine or should i also learn both platforms native language (java / objective c or swift) ?
0
votes
2answers
25 views
Destroying anything, after a moving trigger box exits it
I'm making a endless runner game, and i have a trigger box following the character, behind the camera. I want it to destroy any kind of object, after the trigger box exits the object. so far i have ...
0
votes
0answers
19 views
Unity C# - Using UnityEvents or Delegates to handle multiple checking on update()
I am making a Behavior Tree made of IFs, my technical counselor told me that it was not necessary to use linked lists (as I have seen that it is a standard for BTs), so everything is basically checked ...
5
votes
1answer
41 views
Unity - Particle System Shuriken - Setting particles in code with random row in texture animation?
Good day, I'm attempting to randomly generate a space scene (quite large actually) in Unity through C# code mainly. So far, I've gotten stunning results up to what image #2 will show you. However, now ...
1
vote
1answer
35 views
Unity: Trying to add an in-scene 'press E to open' tag as UI element
In Unity 5.4.1 I'm trying to add a tag that says 'press E to open' to a door as you approach it. I've got a RayCast pointing forward from the player, detecting the door and , connected to my ...
0
votes
0answers
18 views
Unity webgl, freezing on screenshot
I have a code that allows me to capture a screenshot and send the byte array to a server to be saved in the users profile, the problems are that I'm building for webgl So I can't use the application....
0
votes
2answers
29 views
SetActive true/false only once when game install first time unity?
In my unity game I try to give player instruction how to play but it only in first level and first time when game install so how i can do this?
0
votes
0answers
7 views
DllNotFoundException: OVRGamepad
Iam working on GearVR app with unity.When I runned my app,its giving an error DllNotFoundException: OVRGamepad OVRInput+OVRControllerGamepadDesktop..ctor () (atAssets/OVR/Scripts/OVRInput.cs:1738) ...
1
vote
1answer
34 views
unity real time terrain editor
im trying to make an editor for my game. but I want to know is it possible to edit terrain map heights or textures? if the answer is true, should i make it from scratch or can I use unity editor tools ...
0
votes
0answers
39 views
Create a spreadsheet for a tiled map
My plan is to write a tile map generator, that will automatically take the right sprite out of a spreadsheet, and place it on the game board starting from the basics in this tutorial for Unity. My ...
0
votes
1answer
39 views
How to do I make my sprite move when it's instantiated in Unity5?
Here's the code I currently try to use to move my instantiated sprite: time++; if (cow == 1 && time >= wait) { Cow0Walk(); } if (cow == 2 && time >= ...
0
votes
0answers
77 views
Unity Resolution
Why does my GUI appear shorter when in a 1366x600 resolution versus a 1366x768? To illustrate this, this is the 1366x768 resolution... ...and this is the 1366x600 resolution, which appears shorter ...
1
vote
0answers
26 views
how to implement ARVR controller in unity & vuforia
hello i've been strugling figuring out this thing. i'm trying to make ar controller for my vr cardboard game, so the idea is using AR and VR simultaniously. you will completely in vr game but your ...
0
votes
0answers
10 views
Unity 2D play animation with flipX then enabling and disabling GameObject “locks” flipX
I have a GameObject with an Animator that contains many different animations. In C# I switch between these animations with animator.Play("AnimName"). Some of the animations have the flipX property ...
1
vote
1answer
35 views
Certain lines in C# script not running on certain GameObjects in Unity
Sorry for the long question, but I'm being specific in order to avoid answers I've already considered. This is the weirdest problem I've encountered in Unity thus far. What's happening is that the ...
0
votes
0answers
10 views
Strange glitches with VolumetricLighting test scene (Unity)
I was going to test the VolumetricLighting test scene, but I faced a problem. After starting the game, I can see only some strange glitches on the screen. Also I get an error message in the console: ...
0
votes
2answers
43 views
Loading next scene when counter is down to 0
I am trying to let my Unity project load next scene when the counter I have is down to 0. However I am unable to do that for some reason. The way I am trying to do it by : int i = SceneManager....
-3
votes
0answers
28 views
How to animate 2d trees?
I know that artists can create an animation for a tree. But to allow my artist colleagues to work on something else, I'd like to animate trees programmatically. How could I achieve this in unity?
0
votes
1answer
32 views
Follow a path in Unity
I want to know how I can make this game object follow the specified path in unity
-1
votes
1answer
30 views
Incorrect values fron Input.GetAxis
I need the gamepad Input on my game, and I'm trying the Input.getAxis("Horizontal") function and the documentation says that returns a value from -1 to 1, 0 is the central value, when I not move the ...
-1
votes
1answer
28 views
Unity 5 Deleting Large Quantities of GameObjects (around 10000 or more) from Hierarchy
I've screwed up on this one. I used a script to randomly generate trees in my scene. The reason I did this instead of using the Mass Place Trees function in the terrain editor is because the trees all ...
0
votes
0answers
17 views
Unity3D saving and loading complete scenes
I'm using an Entity-Component-System architecture in my game. Every entity and their components can be serialized. For serialization I use Easy Save 2. So far so good. Now I'm wondering, how the ...
0
votes
0answers
10 views
Unity3D: iTween ValueTo() not working
I have the following code to animate the Camera's FOV change: public float fieldOfView; public Camera theCamera; public float animTime; private float origFOV; void OnTriggerEnter(Collider other) { ...
0
votes
1answer
56 views
Controlling resolution in Unity 3D. Beginner's problems
i started working on developing games one month ago. I really like it, although it isnt easy. The problem i have now, is with display resolution after i build game. So far i have been working with ...
-5
votes
1answer
52 views
How can I detect when all numbers are a certain value?
I'm trying to write "you win" when all numbers are "green" (in this case, equal to the constant Fez.color.g). This is the script I have so far: void Start () { for (int SD = 0; SD < 10; SD++) ...
0
votes
1answer
18 views
How to make simple audios tracks? [on hold]
I'm making a simple arcade game in Unity(alone), it's my first game, and I don't wan't to making a mistake with audio, I'm looking for a program to create simple "musics/audio themes" (like a simple ...
1
vote
1answer
29 views
How can I move my box collider temporarily?
I'm very new to game development, I mostly program other things. I'm trying to write a basic whack-a-mole type of game. I've gone ahead and created a hammer with a swinging animatio in the FBX. I've ...
0
votes
1answer
20 views
Raycast implementation in order to optimizate collision-detection
I want to know if a gameobject (a plane) is facing another one to prevent collisions. Right now I have an array that contains all planes in the scene and, for each one, compare position in order to ...
0
votes
1answer
33 views
Combat System - Class Objects as Package and Listener
So I've been trying to map out a combat system and I have an idea I'm laying out that I'm looking for a sanity check on, as well as suggestions. The idea is that all things that can do damage (...
0
votes
1answer
20 views
Unity2D: Creating a Cross-Platform Multi-Player Game in Unity Error!
i'm following this tutorial on raywenderlich to do with multiplayer, since Unity updated, they have added a new method for the participant lefting the event. So I am getting this error on Unity: ...
0
votes
0answers
19 views
Rotation weirdly affects translation
I'm working on simple spaceship simulation. I can turn on/off engines with space, rotate vertically with w, s and horizontally with a, d. The problem is rotation weirdly affects translation. It looks ...
0
votes
0answers
23 views
How to create a tile map based on the size of the board
The aim is to create a rectangular tile map that fills the space provided by the parent object. It's easy enough to instantiate the necessary tiles and connect them to the proper image. The hard part ...
0
votes
0answers
7 views
Syncing Legacy Animation PUN
I'm using the legacy animation system (not the mechanim one) and I am wondering how you actually sync it over the network. I tried doing it through the Photon View component, but that crashed the ...
-1
votes
0answers
48 views
Engine Vs. Native Code [closed]
So this question has been, kind of, asked a few times here, however I wanted to change the question to get the best answer for my situation. I have tried to learn to code, but I am not great at it. I ...
1
vote
1answer
46 views
How should I manage meshes for the streets of a 3D city map in Unity?
I was recreating a small city in Unity3D and was going to place streets and pathways according to a sketch. I'm building for Android and the city is quite small; I'm planning to have the entire road ...
1
vote
1answer
29 views
Can ARToolKit be used for color detection?
I'm trying to make an app that will show an object from different sides, but the target will be too small for any real marker detection. Think of a cube with one or two centimeter sides. The camera ...
0
votes
0answers
80 views
Help how to shoot a bullet?
I'm working on a 2D tower defense game and I'm having trouble making my towers shoot the enemies, the script's there, assigned to the gameobject needed in each case but it doesn't do anything, help ...
0
votes
0answers
46 views
FSM Covariance with derived type
I'm trying to implement a FSM in Unity. I want my controller to inherit from the PoV_FSM finite state machine. I want FSM states to implement the PoV_FSM_State FSM state abstract class. I'm getting ...
-6
votes
0answers
38 views
Windows game development for unity [closed]
Can you develop a unity game for windows using mono develop and still publish too windows and if so how.
-1
votes
1answer
62 views
Realistic 3D Lighting in Unity
The game I am working on is in 3D, and I need to create a realistic looking recessed ceiling light, preferably without any 3rd party plugins or tools, as I am on a school computer. What is the best ...
0
votes
1answer
27 views
Unity C# GameObject Clones Sharing the Same Script When I Don't want them to
I've been having issues with a game I've been working on for a while. It's a pretty big project. I'm having some issues with two tree prefab game objects sharing code, where I don't want them to. ...
0
votes
1answer
55 views
Untity Game Destroy all objects instead of one
I have two game objects with the same script. In the PicUpSys script I have this code using UnityEngine; using System.Collections; public class PicUpSys : MonoBehaviour { public InvSys _InvSys;...
0
votes
2answers
33 views
How do I find an object by type and name, in Unity, using C#?
I know that in Unity you can find an object of a certain type, using myObject = Object.FindObjectsOfType<MyType>(), but that only returns the first object in the scene it finds of that type. ...
0
votes
2answers
50 views
Unity solution not compatible with Visual Studio
Since updating to the most recent version of Unity 5.4.0f3 Personal Edition, whenever I double click on a script, it launches Visual Studio, but I get an error saying that this version of Visual ...