Questions tagged [unity]

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.

Filter by
Sorted by
Tagged with
-1
votes
1answer
178 views

Cloud Computing Middleware to Control for Add/Kill VMs + Sessions

I'm working with some people who have a prototype game in Unity and may need to scale it up to address a larger user base. The potential application has the following characteristics: Sessions are ...
-1
votes
2answers
140 views

Giving the update function a history

I am using Unity but this is an issue, that can be applied to every programming language. I only have one Update-Function. function Update () { } This function ...
-1
votes
1answer
819 views

Asynchronous Game server [closed]

I am building an asynchronous multiplayer game (which can be compared whith a chess game) with Unity (up to 4 players in game). But I am stuck at choosing the server side solution. For me this kind of ...
-1
votes
1answer
527 views

I want to start making 2D Games with C++ or #C [closed]

I know C++ pretty well, I think - polymorphism, vectors, templates, and more. I also know C#. I want to program a 2D game, but not like those programs where you click a button or two, and you ...
-1
votes
2answers
520 views

Unity (Javascript Syntax) Isn't Allowing Me to Override My Inherited Method [closed]

First, I would like to say I apologize if this has already been asked and there is already an available thread covering this. I did my very best to try and find a resolution to this using preexisting ...
-1
votes
1answer
130 views

Unable to Call Instantiate in Class Member Function

The following javascript is attached to a gameObject. ...
-1
votes
1answer
3k views

How to adjust the shooting angle of an object

I've been trying to add an angle adjustment feature to a power bar that I got from unity3dStudents. But I can't seem to get the code right. I'm using addforce to rigidbody, it works but the power is ...
-1
votes
0answers
25 views

My gameobjects in Unity are behaving sometimes as per the behaviour defined for them and sometimes random? [on hold]

I believe that it might due to executing many functions in parallel. Is there a way to optimise the execution of functions so that the gameobjects behave correctly?
-1
votes
0answers
15 views

Character teleports instead of jumping 2# [duplicate]

Since I got no solutions in this question that I did 10 days ago I decided to make other thread. Basically my character instead of jumping normally, he teleports and then glides down, tried many many ...
-1
votes
2answers
58 views

Problem making wave animation

I want to simple wave-like animation using mesh. I thought that it would look like a wave if there would be a point at the middle of the mesh and change z axis of that point, and after this I change ...
-1
votes
0answers
27 views

How do I make my character walk on a platform without falling?

I'm developing a game where the player has automatic movement, it's a platform game. I need my player to when it walks on a platform it doesn't fall when the platform ends (I want the player to turn ...
-1
votes
0answers
20 views

Canvas image should not influence lighting [closed]

I would like to insert an image on a Canvas into my HDRP scene. This image should serve as the background of a 3D scene. It should not affect the lighting. It should be ignored the FX and the lights. ...
-1
votes
0answers
41 views

How can I apply a ScaleIn / ScaleOut effect to an obstacle?

I'm working on a 2D game. How can I apply a Scale in & Scale out effect on an obstacle? Code: ...
-1
votes
0answers
13 views

How to get quaternions for a rotation if only one axis is flipped in the co-ordinate system? [duplicate]

I have a quaternion representation of rotation and position in a co-ordinate frame which is right-handed and I want the corresponding rotation and position in another frame where the Y-axis is flipped ...
-1
votes
0answers
13 views

Photon(PUN) syncing Animations

...
-1
votes
0answers
42 views

Determine the positionof the ball and its speed vector

A Pong ball starts at (2,3) with speed vector (1.1, 0.7) units per second. The right-side paddle is flat between (7,7) and (7,10) and angled at 45 degrees at both ends to (8,6) and (8,11). The bottom ...
-1
votes
2answers
51 views

How to make a sphere bounce while it is moving forwards Unity

I am trying to make a sphere that I have moving forwards also bounce at the same time. Here is what I have tried. Adding a physic material to the sphere and setting the material with a friction ...
-1
votes
0answers
21 views

Animation approach recommendations

Being a novice in game dev I can't find a clear answer on how to decide what way to implement an animation is the best for different scenarios for 2D game. With Unity I can implement animations ...
-1
votes
0answers
33 views

How can I move the character to the center of the screen when the user clicks with the primary mouse button?

I am a newbie at this and I'm just trying to learn how to do different things. I am wanting to move a character sprite in a horizontal line, toward the center of the screen when the primary mouse ...
-1
votes
1answer
31 views

how to set the first color of the list in the sprite

...
-1
votes
1answer
68 views

How to detect least distance to line segments calculation

I'm trying to calculate the distance of the player to a few lines that intersect two points, and return the smallest distance (i.e. tell me which of the lines the player is closest to/how far the ...
-1
votes
1answer
30 views

Can't Access the float value of another script. Getting Annoying Messages?

There is a float value in my scriptA. And, I'd like to access this float value and change it in scriptB. But, I am getting message that " static member ScripA.float cannot be accessed with instance ...
-1
votes
1answer
50 views

How to stop the ship before falling into whirlpool?

I am programming a game in Unity with C# I have a ship which I needs to move towards the whirlpool (target). The ship has to be stopped before entering the whirlpool. I need advice as to how to ...
-1
votes
1answer
34 views

How can I change the direction of movement each time a key is pressed?

I would like change randomly the movement of an object every time I press Q. It seems like the code should be like this, but it does not change the direction of movement as expected: ...
-1
votes
1answer
17 views

Can I use my Unity Plus licence with Unity version 5.3.4p3?

I had Unity 5.3.4p3 from 2 years ago, and I want to use it for my current project. Since then, I've purchased a Unity Plus licence. Can I use that licence to develop and publish my Unity 5.3.4p3 ...
-1
votes
1answer
60 views

Rotation Problem in Mario galaxy like controller [duplicate]

i'm doing a Mario galaxy like CCC. And I have a serious rotation problem, may be Gimble lock, or maybe not. So first, I have a parent object ("PLAYER") who can rotate toward a planet: https://youtu....
-1
votes
1answer
54 views

How can I prevent the balls from overlapping?

I am making a ball rolling game controlled by tilting an accelerometer. In my game multiple balls overlap, so they end up showing as only one ball. How can I solve this problem, so balls do not ...
-1
votes
1answer
52 views

Wave spawner, wave number and word length

I'm trying to create a falling word typing game like z-type. I have used the code provided here : https://github.com/Brackeys/Falling-Words-Typing-Game In the WordSpawner.cs file, I'm trying to set ...
-1
votes
2answers
82 views

UNITY || How to access the “exit transitions” of the current played clip from the animator?

So, I have an animator , i can access it. But from there I have no idea how to access the clips inside. I need to access the transition of the clips. I got as far as accessing the object of the "...
-1
votes
2answers
48 views

How can I change member variable when it's passed as an argument to a method?

I am trying to use the unitConverter method below to change the values of u1_1SCost and ...
-1
votes
1answer
46 views

How do I get all the childs of each squad?

...
-1
votes
1answer
66 views

The game is running but it gives me Object reference not set to an instance of an object error on console [duplicate]

When I play the game it works perfectly fine but it shows an error in the console when pressing buttons but it is still working just causing a bit of lag. This is the error: NullReferenceException: ...
-1
votes
1answer
61 views

Share user-generated content across multiple platforms?

I have a simple puzzle game that I want to release on Steam first. It includes a level editor, which I want to integrate with the Steam Workshop. That way, users can easily share their creations for ...
-1
votes
1answer
34 views

How can I make my mouse rotate my character?

I have third person view on my character already, but I can't figure out how to make my camera rotate my player using Unity.
-1
votes
1answer
61 views

How to Make Character Shoot Where Aiming with Mouse

I've looked around and none of the stuff I've found seem to help me. Here's my code so far. Right now it just shoots to the right (on purpose). Now how do I adjust my code to make the bullet go where ...
-1
votes
1answer
577 views

Retrieve multiple images from MySql database via Unity C#

We could say that we are beginners, We can consult and show our data (text) from Mysql but the images don´t show in Unity. Need some help! We hace tried almost everything! We can someone help us. in ...
-1
votes
1answer
27 views

Can i somehow set update time for FixedUpdate?

I'm just curious if can i have more control over that function.
-1
votes
1answer
204 views

How to rotate a parent object based on a child object's position so that it is now in front of the player?

So I have a car object and basically the player will select a part on it and be able to look at the description and other things. What I currently want to do is when the user clicks on one of these ...
-1
votes
1answer
43 views

Can't access object parent type if some parent object along the way was in array

I use this method to get type of the object the field was declared via reflection. (f.e.) this time it's field at index [5] - ...
-1
votes
1answer
165 views

Unity: input axis raw for touch returning fractions

I am not going to show any script, which may make it complicated. In unity ,when I used the cross platform input manager for touch buttons, the raw axis values returned are in small fractions(like 0....
-1
votes
1answer
725 views

How do I climb up a ledge

I am currently working on a 3D game in unity. I want my player to be able to grab a ledge, and climb up on it. Please I will like to inform you that I am new to this, so a basic and easy to follow ...
-1
votes
1answer
166 views

Bullet uses host's camera to tell where to fire rather than using client's camera

Problem In my 2d top-down multiplayer game, whenever the client player fires a bullet, the bullet is supposed to go towards the direction of the clients mouse. However, when the client fires, it goes ...
-1
votes
1answer
339 views

Coroutine doesn't work

I've been trying to make this work for days and I can't figure it out. I have a code, attached to an enemy prefab, that should display an image a couple seconds after an enemy spawns (this is to show ...
-1
votes
1answer
841 views

2D sprite is 'blinking' when animation is playing

When I fire a bullet, instead of frames 4 and 6, the sprite selector in the sprite renderer component says "Missing (Sprite)" and 'blinks' for a frame, not showing anything.
-1
votes
1answer
220 views

How to import the Sanford Midi Library?

I am trying to parse a MIDI file using the Sanford MIDI Toolkit. How do I use this toolkit? I found this link on Github: https://github.com/tebjan/Sanford.Multimedia.Midi I downloaded the .zip file ...
-1
votes
1answer
98 views

How to make a player walk over the network

First of all, it is a newbie question and I am a noob so ya. I am working on Unity with low level network API. I am able to ...
-1
votes
1answer
29 views

How can i compare Input.anyKeyDown to prefab name?

...
-1
votes
1answer
22 views

Unity App for mobile

I'm a newbie here I'm willing to acquire a unity game from a developper and he mentionned that the app is Optimized for Mobile Devices. Does it mean I can build it for android and export the apk file? ...
-1
votes
1answer
46 views

Battle of the Vectors

When building a Unity2d game, is it better to use Vector3's for waypoints, etc... or to use Vector2's ? The advantage I can see of using a Vector2 is that it is smaller (2 floats vs. 3) and therefore ...