Most voted "unity-5" questions
Unity 3D or Unity is a proprietary 3D game engine and an IDE created by Unity Technologies. Version 5 is the current stable version of the engine. Use this tag for questions about version 5. For general questions, use the Unity-3d tag.
Learn more…72 questions
Sort by count of
-
6
votes1
answer265
viewsThe variable animacao of Controles has not been Assigned
I’m trying to get my character to walk in one Animation and stand in the other. In Animator, created a parameter of type float walk to make the exchange control between the animations as shown in…
-
5
votes1
answer741
viewsSprite cut diagonally in Unity 5
I created a game in Unity 5 (directly for Android) (following the following tutorial) but when I run it on Android the Sprites are cut diagonally as the photo below: OBS: Unity 5 Environment Testing…
-
5
votes1
answer1119
viewsDatabase Connections in Unity
I am developing a mobile game using Unity 3D and need to have a local database on the device. Which database to use? It has how to use Mysql, Sqlite. Can anyone help me?
-
4
votes2
answers1010
views -
4
votes3
answers68
viewsUnity5 engine error in code
I was creating a code for the one game and in the end appeared some problems: Assets/Scripts/Player/PlayerMovement.cs(63,23): error CS1547: Keyword `void' cannot be used in this context…
-
4
votes4
answers174
viewsComments weigh the code in C#?
I use the C# language with Unity Engine and, as several programmers have access to the code, we usually comment a lot so that everyone can understand what is there. I saw in other responses…
-
3
votes1
answer827
viewsHow to adjust the gun so it always shoots where the aim is
I have a gun that is positioned on the screen manually and I need to create a script in such a way that when I fire, the bullet will reach the point where the sight is aiming, which in this case is…
-
3
votes1
answer520
viewsIs it allowed to use free sprites from the Unity Asset store in monetized games?
Is it allowed to use free sprites from the Unity Asset store in monetized games? I saw that the Unity Asset Store has many sprites that are free. I was thinking of starting to develop some simple…
-
3
votes2
answers1124
viewsc# - Unity - Error: Object Reference not set to an instance of an Object
I’m a beginner in C#programming, and I’m trying to learn how to make a 2d sidescroller game, but I couldn’t move forward from a part of the tutorial. This is because the camera simply doesn’t follow…
-
3
votes1
answer73
viewsAudio plays in editor, but not on mobile
I’m making a narrated game for Android in Unity 5 with c#, I use the following function to pick up the audio from Google’s voice. However it works only in the editor, when I have it installed on the…
-
2
votes1
answer1725
viewsHow to test an app created on Unity for Android in a logcat emulator like in Android Studio?
In the unity developing for Android, it does not test exactly as in an emulator like Android Studio. I know you can generate one apk and test on the physical device, but I wanted to test on an…
-
2
votes2
answers1012
viewsDrive with 2D Touchscrren
I need to make a C#Script code for moving a 2d character in Unity. I developed a code that runs well on the pc using arrows, but I have no idea how to make it move using the touchScren of an Android…
-
2
votes2
answers433
viewsConnection database in Unity
I am developing a game in Unity and we have reached the part where it is necessary to store players' scores in a database. This information will be used in the rank that will appear at the end of…
-
2
votes0
answers68
viewsHow to load content from a remote json file to Unity 5?
I have 60 urls, but www.text only returns me 45. I have no errors. Below is my code. public class LoadPhoto : MonoBehaviour { private string LinkJsonFile =…
unity-5asked 8 years, 9 months ago Jéssica Dias 161 -
2
votes0
answers359
viewsHow do I open a google maps tab in Unity without buying an Asset?
I’m having trouble figuring out how to open a tab or the google maps app itself in my app inside Unity, and I can’t buy Asset to make it easier, what do I do? has some other website or app that I…
-
2
votes0
answers109
viewsLighting, Neon Unity 3D
Well, I’ve been trying for several days to do a generic neon like the image below, but without success, someone who knows how to handle Shader can help me? I wanted the neon to be the same or near…
-
2
votes1
answer31
viewsGet/Calular edges of a 3D object
I have the following question regarding obtaining the positions of a certain edge of a 3D object. Example, I have a track (car game) and I want to calculate, through a script C#, both sides of the…
-
2
votes1
answer1014
viewsHow to keep audio from one scene to another in Unity
I need help. I’m playing a 2D game at Unity. And I would like to know how to keep the audio (background music) from one scene to another and that it continues where it left off. And also how I would…
-
2
votes1
answer187
viewsHow to separate a string in Unity c#
I wanted to know how to separate a string in Unity C#, I ended up looking at some similar questions for C# punch not in Unity, I often found this example string[] linha = reader.ReadLine().Split(new…
-
2
votes1
answer444
viewsBlurred text when activating Canvas
Image as it should be: Blurred image after deactivating first Canvas, and activate another Canvas: I use two Canvas in the same Scene, one for the login, which starts enabled, another for the…
-
1
votes1
answer818
viewsHow to decrease the apk size generated in Unity?
In the Unity I realized that the apk generated with no texture image script configuration, ie with nothing comes out with a size of 20 MB, because they come out with this size and if it has to…
-
1
votes0
answers194
viewsArgumentexcept Unity5 Input error horizontal is not setup
I’m trying to follow the game tutorial "Nightmare" canal playing with Nils, my script does not present any errors, however my character does not move and the Unity 5 shows this error related to Axis…
-
1
votes0
answers59
viewsHow to upload 60 remote images to Unity 5?
I’m trying to upload 60 remote images from a JSON file, such as textures from a prefab, in three steps of 20 images. However, I can only upload 15. My code below. public IEnumerator SetGallery…
unity-5asked 8 years, 9 months ago Jéssica Dias 161 -
1
votes1
answer585
viewsHow to turn a "Unity5 Project" into apk, for Android
I’m following Youtube video game development classes with Unity5. After creating a project in Unity5, I would like to convert it to apk and test on a mobile phone, but in the middle of the…
-
1
votes0
answers86
viewsSame script on various gameobjects
I have four gameobjects on the screen (active) each with the same script, but renamed to not look exactly the same. My problem is that when I call via touch one of them the other is who obeys the…
-
1
votes2
answers272
viewsUsing Unity 3D tags?
I cannot identify my prefabs with the tags I have set, I have already added the tags to the prefabs as you can see below: and my condigo: public void Checks(){ for (int y = 0; y < gridHeight;…
-
1
votes1
answer108
viewsAddcomponent() with parameters in Unity3d?
Good morning, everyone! In short, I am trying to use "new" to build an Object in Unity, but it says that it is not recommended to use new to instantiate an object and suggests the use of…
-
1
votes2
answers317
viewsHow to make a Transform. Smoothed translate() in unity5?
I need to move one GameObject to any destination, but the transition must be smooth at a constant speed such that it lasts the time that is passed by parameter. For example: void Move(GameObject…
-
1
votes0
answers35
viewsDownload audio with Unity on android
I’m trying to download an audio, in the editor the download works, but after installed apk on mobile phone, it downloads the file, soque not complete, it saves a 40b file, while the file saved in…
-
1
votes0
answers76
viewsHow to adjust dubbing caption in a Beat Em Up in Unity?
Could someone help me how to put a dub (dialogue) inside a scene in a Beat game in Up? My character walks through the game and when he meets Boss he says something, in case I would like to put the…
-
1
votes1
answer126
viewsWhat good is this command?
Hi I’m having a question and I need a C# command that activates and deactivates a layer inside the Imator in Unity 3d. This server command for this? Animator.GetLayerName ("Nadando"); In case I want…
-
1
votes0
answers46
viewsHow to round position in Unity
My object moves by the keys A,D,W,S. It moves 1 in 1. However, this position is not always round, and can vary from 1.5 to 1.900 and this hinders the collision. Is there a command to round…
unity-5asked 6 years, 5 months ago Pedro Prata 39 -
1
votes1
answer414
viewsHOW TO PERFORM FUNCTION EVERY TIME PERIOD - UNITY
I need to perform this function - which creates a randomized platform in a randomized position - every 3 seconds . How does?? void CreatePlatform() { System.Random random = new System.Random(); int…
-
1
votes0
answers109
viewsFailed to Merge Android Manifest.xml with Admob [UNITY]
The error is present when I try to build my Android game in Unity, it simply accuses error and says that it was not possible to merge the Androidmanifest.xml file.. Erro1 Androidsdktoolsexception:…
-
1
votes0
answers74
viewsI’m doing the game Nightmares from Unity and in the playerMovement script my character just doesn’t rotate looking at the mouse
This is my code, I thank you in advance for your help. using UnityEngine; public class PlayerMovement : MonoBehaviour { //velocidade do jogador public float speed = 6f; //vetor responsavel pelo…
-
1
votes0
answers23
viewsUnity3d Because my camera is rotating sharply, character even keeps blinking
I made a camera for my game in third person, but when it rotates together with the player, the player sometimes goes away, it seems as if the fps goes down (but it’s just impression). I have done…
-
0
votes2
answers123
viewsDifferent Jump size on Android Unity 5 devices
I created a game like Infinite Runner that works properly in the Unity 5 Game tab but in android when I perform Jump in my character it has a climb always of different size, how can I solve this…
-
0
votes2
answers241
viewsPlayerprefs in Unity with Boolean variable?
The PlayerPrefs Has something similar or it itself can use boolean variable. example: PlayerPrefs.GetInt() // e para inteiros
-
0
votes0
answers51
viewsFill inspector variable via Unity code
I’m trying the following: When the enemy is instantiated I want him to target my player, all right, but when the enemy comes to the game he does not fill the variable Alvo as I pointed out below,…
-
0
votes1
answer70
viewsWhat are the Application commands in untiy 5.3?
What is the new command of unity 5.3? The Application.Quit(); is obsolete and already I want to change, not to bug, someone can help me ?
-
0
votes1
answer86
viewsUnity Roguelike help
The Unity compiler is presented with this error when implementing the Player control. Assets/Scripts/Player.Cs(58,33): error CS0115: `Player.Attemptmove(int, int)' is marked as an override but no…
-
0
votes1
answer244
viewsHow do I bump my player with a Tile on Unity 5?
I need to put bumps on some static tiles so the player can’t get past them. I tried to put a Box Collider 2D on player and Tile but it’s not working. How I solve this in the best way possible, in a…
-
0
votes4
answers520
viewsDiagonal movement Unity 5
I am a beginner in Unity 5, I am trying to create a game 2d, where I want to put diagonal movements after collisions, currently get my object after collision to be thrown up, but I can not in any…
-
0
votes1
answer57
viewsNightmare (Unity training day) Part of script not found
Hello I am configuring the script of "Playermovement" of the project Nightmare of UTD 2014, well, arriving at this part (shown in the photo) I went to configure the script for the player to follow…
-
0
votes1
answer1893
viewsorganize GUI for any screen size in Unity5
I’m creating a 3d project, making a menu. When I run the game at different resolutions always changes the menus. I do everything in Free aspect, my intention is that even in other resolutions the…
-
0
votes1
answer685
viewsCamera does not follow character UNITY 5
Error in Unity Look rotation viewing vector is zero UnityEngine.Quaternion:LookRotation(Vector3 Codigo Inteiro using UnityEngine; public class PlayerMovement : MonoBehaviour { public float speed =…
-
0
votes1
answer2019
viewsHow to program a button in Unity that after being clicked, shows a text with information on the screen?
I would not like to have to create another Scene again to show the information... I would like to show on the same screen it and without leaving it swayed. Could someone help me?
-
0
votes0
answers30
viewsHow to access the Raycast gameobject from the Gear VR controller?
I want to know how I can activate the red laser of Gear VR and how I can know information of what the laser is playing ?
-
0
votes1
answer513
viewsHow to use Tiles in Unity 5?
I’m in big trouble. I’m doing a role-playing game and using tilesets with the 32x32-dimensional Tiles for all of the game’s graphics, but Unity doesn’t support tilemaps. I’ve looked for plugins and…
-
0
votes1
answer238
viewsUnity - "How to center and update all Game variables?"
Engine: Unity (5.4.3). Scripting language used: C# Setting: The game is divided into scenes, each scene composed of enemies and traps, each enemy composed of their weapons, and each of these…