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
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
274 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
44 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
196 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
168 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
371 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
979 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
236 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
31 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
47 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 ...
-1
votes
1answer
865 views

FixedUpdate() Not Being Called

I'm following a tutorial for making a simple shooter in Unity, but I have a problem. FixedUpdate() is never being called. I tested Update(), and it was being called as it should be. Normally I would ...
-1
votes
1answer
134 views

The rotation along z axis is not changing to zero? [duplicate]

Code: ...
-1
votes
1answer
410 views

The value of animation parameter is not changing?

Code: ...
-1
votes
1answer
39 views

Saving feature in Unity5 [duplicate]

I'd like to know how to accomplish saving, accessing old save files, and overwriting them.
-1
votes
2answers
57 views

Make Float Hindi (Devanagari)?

Whenever the game sessions ends and the Game Over scene is loaded, the score is stored in this float, which is in another script that I do not have on here: ...
-1
votes
1answer
1k views

How do I play local user-provided audio files on an Android or iOS device? [duplicate]

I'd like to allow a user to select a path to local audio files, in Android and iOS devices. Is there a way I could provide a list of available songs, in Android or iOS devices, so the user could pick ...
-1
votes
1answer
156 views

Problems with arrays

I'm having a problem with the arrays that is in my code, I found the problem,but I don't know where or what lines to fix it. First, I'm setting variables and I dragged the gameobjects and buttons ...
-1
votes
1answer
664 views

Why is my Unity scene prefab auto-changing?

I have some prefabs which are instantiated in game. There are some attributes of prefabs such as size(width, height), text string and color which are changed from code. Well, it is working fine. ...
-1
votes
1answer
43 views

How to see my plane & ball in the camera during play?

At the 13:00 mark of this tutorial, the narrator manages to launch a scene and control the ball (player) in that scene. However, when I launch my scene after following his instructions till then, I ...
-1
votes
1answer
93 views

Coroutine problem(I think)

I've developed a loading system that uses coroutines. When I load up the game and hit 'new' or 'continue' game works fine and it loads up the game just as it should. However, when I go back to the ...
-1
votes
1answer
102 views

About learning c# [closed]

I am a high school student. I know different languages like c, c++(70%), html, python (half). Now I want to learn c# for unity development. I want to learn it from the very beginning and I have 1 year ...
-1
votes
2answers
3k views

Make a 2D tile map from isometric tile

So I have an isometric tile ( PNG ) and I was wondering how can I make a 2d tile map from it. I am using Unity.
-1
votes
1answer
292 views

Find if two triangles are touching each other! To find the edges of a polygon. Unity3d/C#

I need help trying to find if two triangles are touching each other. If vertices are repeated twice in the mesh triangles setup it means they are connected. I then try to calculate the direction ...
-1
votes
1answer
71 views

How do I count with input, in Unity?

How do I count from 1 to 10? I want to count upwards to 10 when I press C, and count down to 0, when I'm not. ...
-1
votes
1answer
2k views

How to assign GameObject to a instantiated prefab?

GameObject A (Panel - CraftSystem) is in the scene already as seen on the screenshot (Screenshot). I then instantiate the GameObject B (WorkingStation) which has a public GameObject craftSystem. So I ...
-1
votes
1answer
1k views

Unity-How to use one scene's camera in another scene?

I have two scenes in my game, one is the menu scene with the UI and the other is the scene where all my game items are. Right now my UI looks too plain so what I want is to display my actual game ...
-1
votes
1answer
2k views

Unity car AI with navigation mesh

I made a car AI that works by raycasting for obstacle avoidance to steering and accelerate. I want to know how can I implement a navigation mesh for better obstacle avoidance. How do I implement a ...
-1
votes
1answer
123 views

Cannot find Natural front 3D facial animation plugin in Window drop down

I am using Unity version 5.4.2 which is the latest, I tried to go through the tutorial video for creating 3D animations of 2D pictures but I am unable to find the icon of -> Natural front 3D facial ...
-1
votes
1answer
73 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
61 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 ...
-1
votes
1answer
2k views

How to access the component of a child object inside another child object using a tag?

As the question above, I need to access the collider component of a child object that is inside its parent object which is also a child to its parent object. I tried this line of code below but it ...
-1
votes
2answers
303 views

3D model gets partially invisible when large, Vuforia and Unity

I'd appreciate if someone could advise on my problem. I use one on-device image target and a single 3D model. I use Unity extension and then export the scene to Android project. I also use Extended ...
-1
votes
1answer
336 views

Can't seem to translate in Y using “Jump” axis

I'm trying to write a character controller for a free-moving camera. I don't want it influenced by physics at all (no gravity, no collisions, no inertia). I've managed to get great movement in the X ...
-1
votes
1answer
83 views

When mouse on a button image appear?

My canvas contains three buttons and three images. I would like the images to appear when the mouse hovers over buttons. ...
-1
votes
1answer
1k views

Correct jumping cycle logic in Unity with 3 jump animations

I have 3 jump animations; jumping up, jumping down, and the loop in between. I want to play them in an order, using logic. When the player presses space, I should play the "jumping up" animation, ...
-1
votes
2answers
480 views

How do I add cinematics to a Unity game with C#?

I'm trying to develop a 3D game, and want to know the best way to go about adding cinematic or cut scenes that are triggered by a players proximity to certain objects.
-1
votes
1answer
303 views

Allow user to load remote assetbundle

How can I change the script to allow the end user to enter a URL, in the game view themselves, instead of me at the back end? Here is the Unity script that I am using successfully to allow me add an ...
-1
votes
1answer
74 views

Unity3d c# NullReferenceException keeps showing up

...
-1
votes
1answer
489 views

move camera with button in unity c#

I want to move Main Camera with button. Here's my gameplay: Here's my scene: I want that when I click a button, main camera moves to right in another pic.
-1
votes
1answer
473 views

Unity2D: Don't Destroy On Load UI button Error

I have two UI buttons, an activation button, and a frost button. The activation button activates my frost button when I click on it , using OnClick. I have this ...
-1
votes
1answer
570 views

How do I make Text Mesh appear five seconds later and disappear from the scene in unity3d [duplicate]

I have a text mesh in my scene. I don't want the test to show right when the scene starts . I want to text to show up in the scene five or ten seconds later on the screen and than the text disappear ...
-1
votes
1answer
261 views

How do I use Couroutines for spawning and spawn certain amount of enemy AI in the scene?

I have made a spawn function for spawning enemy AIs, and it didn't work well in my scene. I have the enemy AIs spawning in the update function, and it initially works fine, but it's spawning too many ...
-1
votes
2answers
189 views

deprecated unity networking system

I have pretty old half done unity multiplayer project. I made it with the old unity multiplayer system that now has deprecated. now can I complete it with the old unity network? or i need to learn ...
-1
votes
2answers
464 views

Unity - Pass an instance of an object to another

I am using Unity. I created a Background class and a Cube class which are empty. Also I have a ...
-1
votes
2answers
173 views

How to make characters line up in front of a kiosk at Unity?

In my project I have a queue struct which contains character models. I need to make them line up. When the first model on the line leaves it, the one behind it must take his place and all the line ...
-1
votes
1answer
191 views

MMORPG networkconnection like Vindictus [closed]

to be honest, I like to make "small" MMORPG with my frends. We are 4 guys and are using Unity3D and Blender. I am a Programmer and I am using Eclipse. I know, it's silly to start a Question like "How ...
-1
votes
1answer
271 views

shooting the projectile in the way it is facing [duplicate]

I got my projectile facing the right way thanks to @S. Tarık Çetin. But now I want it to move the direction it's facing. I think I need to use RayCastHit2D but I am ...
-1
votes
1answer
377 views

How to give a mesh collider gravity 5.0

I was trying to make a simulation of an object that needs gravity to work, a hydraulic movement-assistance system for disabled people. All parts are aligned properly, all objects have mesh colliders ...