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
1answer
12 views
Mouse position to World Position, help!
I have a plane GameObject on which I want to place cubes. The user can move the cube around on the plane and when LMB is clicked, the cube is placed at that position. Everything works great, besides ...
0
votes
1answer
15 views
Filling of a multidimensional array with string
I'm trying to fill a dropdown with a lis,t if some input is correct.
now when trying to create the list from a text file (to save the program) i should split the line on a comma so i have 3 settings ...
0
votes
0answers
12 views
Particle shaders not visible when multiple cameras are used
I use a worldspace canvas in some parts of my game. I need the canvas to be visible, even if behind other objects. To do this I've set up a 2nd camera parented to the main camera, set it's clear flags ...
0
votes
1answer
19 views
Unity - UI Raycast Hits Problem
I'm having a hard time getting a UI to work and I'd love some advice on what I'm doing wrong.
I have a GameObject (P1 below) which holds a hand of cards (a script containing an array of GameObjects). ...
0
votes
0answers
23 views
Save game manager.instance does not add saveable object in the list
I got 3 classes for my saving and loading function. The first is call saveable object, the second is call specific object which is the class inherent from the saveable object and the save game manager ...
0
votes
0answers
29 views
Cannon fires straight upward
I'm trying to simulate a cannon for my game.
It's given a target Vector, where the cannon ball should be fired at. I want a realistic calaculation of the trajectory path, the formula is included in ...
1
vote
1answer
19 views
Unity reflections going white with camera movement
Please refer to this video to understand the issue I am facing.
With camera movement, there is a strong white reflection that appears over the complete model. What settings do I need to change to fix ...
1
vote
1answer
194 views
Game build in unity3d project transfer from a previous developer
Can someone help or give me some idea what are the necessary deliverables from a previous developer that I need to ask regarding the game project transfer?
The situation is, there is a company that ...
0
votes
0answers
23 views
Instantiate a texture around a sphere on collision in Unity
I was wondering how I would go about instantiating a texture that is wrapped around a sphere when a rigid body hits it. I know how to add bullet marks, but how do I make the marks on a spherical ...
0
votes
1answer
43 views
Unity 3D [C#] - How to properly reset a scene
I have a problem when I try to reset a scene. It doesn't seem to run, I have a script (of all scripts that have Awake and Start methods on that scene) that on the Awake method starts a coroutine, but ...
0
votes
0answers
13 views
SteamVR TrackPad - How can I check to see if trackpad has been pressed and being held down in Unity?
I'm looking to figure out how to go about checking for user trackpad clicked and held input.
What I am trying to do is execute a rewind and forward button using the trackpad. When you click on the ...
0
votes
0answers
9 views
NavMeshAgent is not calculating a new path
I have the following code that gets run when a game object collides with a trigger. When the object is created, it is created within an initial trigger which fires the SetNextWaypoint code below and ...
-1
votes
1answer
30 views
Remove delay when changing axis input in the Unity Input Manager
I had a problem playing with the Input Manager, where for example:
When Horizontal (+) is pressed, it increase its value but, when Horizontal (-) is pressed, the horizontal value stays positive ...
1
vote
1answer
22 views
How to know which methods are associated with an event?
In Unity events are used as enhanced delegates.
This is extremely helpful in developing clean concise event management scripts.
However, when debugging said scripts and complex arrangements, is there ...
0
votes
0answers
30 views
Planetary Terrain - How to deform vertices based on float array for generated height data
The question says it all.
How can I deform vertices with data from an float array?
I tried multiple ways like the 6 Sided Cube to Sphere method or the diamond square algorithm.
But none of them does ...
0
votes
2answers
74 views
Making AI like sims (Unity)
I'm not good at Coding or C# and I've been looking around the internet but couldn't find the answer that I was looking for.
I'm using Unity and I want to make an AI somewhat like The Sims, That just ...
0
votes
1answer
62 views
Why is my sphere jumping?
I got a sphere that moves with an angular velocity of -2000 in the X axis, I need that sphere moves on 130 platforms, all those platforms have -0.0182175 in the Y axis.
The problem is that when I ...
3
votes
2answers
420 views
What happens if I delete .meta files?
In Unity, what happens if I delete the meta files? Or if I import does, but not their respective .meta files?
What are some issues I could come across? Is there ever a reason I want to delete.meta ...
0
votes
1answer
40 views
How can I prevent my bullet from influencing other players when colliding with them?
So when my bullet which is a Rigidbody is hitting another player which is also a Rigidbody, the bullet is getting destroyed immediately. But it seems that this isn't enough to prevent the physics to ...
0
votes
0answers
21 views
You are trying to load data from a www stream which had the following error when downloading. 400 Bad Request
I have multiple ui image elements that get their data from a server.
The problem is that some times all of them load properly and without any problem and some times some of them randomly fail, it's ...
0
votes
2answers
34 views
Canvas not filling up the whole screen in Unity 5
i am trying to make my canvas auto resize to any screen size. these are my canvas scalar settings:
UI mode: change with screen size
match height and width
reference resolution: 600x800
i looked up ...
0
votes
0answers
43 views
Black image on splash screen
I'm having a problem with the splash screen for iOS. I'm getting a black image a second after I get the logo in the splash screen. How do I fix this?
I´m using Unity 5.4.2. This is the configuration:
...
0
votes
1answer
35 views
C# Script file is not showing in Onclick Event in Unity 5.0.4f1?
I uploaded the levelLoader file to the gameobject. Still, when I drag the script file onClick Event, the no function is null. Why? Can anybody help me?
C# code:
using UnityEngine;
using System....
0
votes
2answers
50 views
How to disable script component while in game?
I'm trying to make a C# script to disable the First person controller script component for my character. I'm doing this so that while I'm controlling something else such as a vehicle, the only control ...
0
votes
1answer
38 views
On Function event of button is not loading C# Script?
I am making a car game in unity 5.0.4f1. I am facing two snags.
While installing 3.5 net framework, it gives an error. I searched,
it took my 2hrs and problem couldn't solve. Then, I reinstalled ...
0
votes
2answers
75 views
Best practice for RTS accuracy/aim
As I'm developing a RTS game set during the Napoleonic Campaign, I've got a question about the best method to implement 'bad aim' for the AI, as the accuracy of muskets were quite terrible back then.
...
5
votes
1answer
57 views
How can I do something after an audio has finished
How can I enable the SetActive() property of a game object after the audio has finished?
1
vote
2answers
39 views
Unity 2d coordinates
I'm trying to get a 2d tilemap rendering but somethings not clicking with me about the 2d coordinates...
Here's my basic tilemap class -
public class Map : MonoBehaviour {
public Transform ...
-3
votes
0answers
35 views
Simple turn-based game with Xamarin.Forms [closed]
I'd like to make a simple, turn-based game, like chess or Tic Tac Toe. Not an action game. I have 0 experience in gaming so I'm not sure which way to choose. Xamarin.Forms or Unity.
I was really ...
0
votes
1answer
18 views
How to directly set a value to an UI Image's alpha channel(not the percentage of rendering)
When you write the code bellow, it renders a percentage of an image's predefined alpha value (which you define in unity's inspector - for example if you define the alpha value of an image to 100, the ...
0
votes
0answers
29 views
Game Object will NOT stretch across entire content area
I'm loading prefabs into a content area using a content size fitter and vertical layout group. I've tried multiple things to get the loaded prefabs to stretch across the entire content size (including ...
21
votes
3answers
2k views
How can I rotate an object based on another's offset to it?
I have a 3D model of a turret that con rotate around the Y-axis. This turret has a cannon that is significantly off the center of the object. I want the cannon, not the turret, to aim at a specified ...
1
vote
2answers
34 views
Triggering an animation on a gameobject with a collider2D
I'm creating platforms that break on trigger. The animation works and the colliders are set like they should, but I can't seem to figure out how to trigger the "stepBreak" animation I have.
This is ...
-1
votes
0answers
39 views
Please help me to understand Joystick code [closed]
I'm facing a problem on how to link my current code of character movement with Joystick code as I want my game to be able to export it as Android game apps. However I not really understand how the ...
0
votes
0answers
15 views
ARToolkit for Unity - Screen goes for black for a long time before starting the video
I have an issue with our AR iOS app. After the app is loaded screen stays black for a good 1 minute before it starts the video. we really want this issue to be fixed as it is not a good experience for ...
0
votes
0answers
33 views
Why monodevelop is not opening in Unity 5?
As I know, I installed MonoDevelop tools i.e: NET Framework 4.5 and GTK#. Still, it is not opening when I double clink on C# script. It shows me to choose which app you want to open it with.
As well ...
-3
votes
0answers
21 views
Paylines in Unity Slot Machine
So I have all most finished creating my first slot machine in Unity and Im still getting use to it. I'm making a slot machine with 3 wheels and 22 spaces on each wheel. My question is how do I go ...
0
votes
0answers
29 views
My game keeps loading the same scene, the variable I use to determine it doesn't change no matter what I try [duplicate]
On the first scene the curLevel is set to 1. After I collect 6 pickups curLevel stays at 1, but the next scene is loaded. Then I collect 6 more and it just reloads that same scene over and over.
...
-6
votes
0answers
57 views
How can I improve our chance to get Greenlit on Steam? [closed]
We are new developers trying to get our first game greenlit and looking for forums and opportunities to make that happen. any help would be greatly appreciated.
0
votes
0answers
11 views
How do I calculate how much the animation with root motion moves in each axis?
I have made an animation in Unity that moves an object 8 units in x-axis, 25 units in y-axis and zero units in z-axis, and I need to offset the object position according to how much it moves in each ...
1
vote
2answers
78 views
How to optimize collision detection in a lane-defense game?
Somebody told me that don't use the physical collision detection(don't use Collider,Rigidbody,Raycasting) because performance loss.instead of it use the mathematical way for collision detection.
...
1
vote
0answers
26 views
Stitching multiple meshes and aligning vertices
I am generating a map in unity, and i am stuck with a specific issue.
Due to the 64xxxk vertices restriction on unity I need to generate a map in sections.
I generate a noisemap of x times the ...
0
votes
0answers
50 views
Light 2D and Performance issues
I want to make a 2D game that will use 2 kinds of lights (Spotlight and Point Light). I need the game to be completly dark unless there is a light in the area and the light to not pass through walls. ...
3
votes
1answer
41 views
Prevent Unity click go trough Canvas
I'm currently facing this problem: If I click on a Button on my Canvas, the currently selected Unit moves towards the location under the Button.
Is is there any option to solve this? I'm using the A* ...
-3
votes
1answer
18 views
Unity 2D UI Scrollview Stretch settings not staying
So I'm trying to make a Scrollviewer and inside that will be aload of boxes stacked on top of each other (the boxes have information in them - like the boxes in this screenshot here but they will ...
0
votes
0answers
9 views
Unity Adding Box Colliders Changes Mesh dynamics
I have a bi-pedal mesh in unity.
I'm adding box colliders to each bone in a mesh so the user is able to individually select each bone.
However, when I add the colliders it changes the dynamics of the ...
-1
votes
1answer
12 views
How to de/activate HDR option in camera with code?
I have some glowing objects in my scene, that with HDR off are inactive, so i want to add the option to turn HDR off in my settings to increase performance.
If the code bellow is correct, what should ...
0
votes
0answers
20 views
Best way to reduce texture size and ensure a minimum quality
i've been working on this mobile game for about a year now, and we'll very close to the end but we're started to face many problems.
Mainly Crashes and HUGE size for a 2D game (on iOS only).
Those ...
0
votes
1answer
22 views
Sprite Image in Canvas not displaying correctly (distorted)
I have a problem with displaying images in my Canvas, as they're not displaying exactly like the imported image.
In the image below, the sprite on the left is how it looks when it's imported. The ...
0
votes
1answer
26 views
Is there a way to get native resolution of device window/display on android?
When change the framebuffer resolution by calling
Screen.setResolution(1920,1080)
Screen.currentResolution, Screen.width, Screen.height reports back the new resolution 1920x1080.
Screen.resolutions ...