Questions tagged as 'unity-5'

1
answer

The variable animation of Controls has not been assigned

I'm trying to make my character walk in one animation and stand in the other. In Animator , I created a parameter of type float walk to do the exchange control between the animations as shown in the image below. Andassignth...
asked by 24.12.2016 / 23:24
1
answer

Database Connections in Unity

I'm developing a mobile game using Unity 3D and need to have a local database on the device. Which database to use? You have to use MySQL, SQLite. Can anyone help me?     
asked by 04.10.2017 / 22:53
4
answers

Comments weigh the code in C #?

I use the C # language with the Unity Engine, and as many programmers have access to the code, we often talk a lot so that everyone can understand what's in it. I saw in other answers recommendations for using a minifier but they were always rel...
asked by 04.05.2018 / 16:53
3
answers

Engine Unity5 error in code

I was creating a code for the one game and in the end some problems appeared: Assets/Scripts/Player/PlayerMovement.cs(63,23): error CS1547: Keyword 'void' cannot be used in this context Assets/Scripts/Player/PlayerMovement.cs(63,26): error CS...
asked by 19.05.2016 / 14:25
1
answer

Sprite cut diagonally in Unity 5

I created a game on Unity 5 (directly for Android) (following the following tutorial ) but when I run it on Android the Sprites are cut diagonally like the picture below:   OBS:TestingintheUnity5environmenttakesplaceperfectlywithouterror.  ...
asked by 06.01.2016 / 21:21
1
answer

c # - 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 sidescroller 2d game, but I could not get past a part of the tutorial. This is because the camera simply does not follow the character when I press play and Unity shows an...
asked by 29.05.2016 / 06:49
1
answer

Is it allowed to use free Unity asset store sprites in monetized games? [closed]

Is it allowed to use free sprits from the Unity asset store in monetized games? I saw that in the Unity Asset Store there are many sprites that are free. I was thinking about starting some simple Android games and posting them to the PlayStore....
asked by 12.07.2017 / 20:24
2
answers

Problem with the Unity camera

I'm creating a game with unity 5 in 2d, and tried to create a script for the camera to follow the character by moving the camera transform. For this I followed some tutorials on youtube but when I was compiling the code indicated in the Lerp met...
asked by 08.02.2016 / 17:29
1
answer

How to adjust the gun so it always shoots where the sight 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 shoot, the bullet will reach the point where the target is targeting, which in this case is the coordinate of the half of the screen....
asked by 26.07.2016 / 16:07
1
answer

Audio plays in editor, but not on mobile

I'm doing a narrated game for Android in Unity 5 with C #, I use the following function to pick up the google voice audio. But it works only in the editor, when I have it installed on the phone the audio does not play, I checked if the device ha...
asked by 23.10.2017 / 17:50