Most voted "unity3d" questions
Unity 3D or Unity is a proprietary 3D game engine and an IDE created by Unity Technologies.
Learn more…292 questions
Sort by count of
-
62
votes4
answers2243
viewsHow do I implement wind in a trajectory equation?
Has a game of tank 2D, using the Unityengine in C#, in which it is played on the side of the screen, seeing only the sides of the tanks, in which has the green and red tank. The green need to shoot…
-
13
votes1
answer2964
viewsCalculate force to reach point B from point A
I have the value of the starting point, the end point (target) and the initial angle of the object. I would like to know the strength to reach the end point, as in the image below. Is there a…
-
12
votes2
answers489
viewsHow to organize the code to be reused
Consider the following scenario: As you can see, Prefab (red) consists of 3 elements: The sprite (which is the ground, the brown squares and the green tube) The enemy (pink) which is another Prefab…
-
10
votes1
answer450
viewsThe parachute descends head down. How do you reverse it?
I made a rocket in Unity that I can take off and land after five seconds. However, it lands that way: I want to get him to the ground with his parachute up. How can I do that by code? Code I have so…
-
9
votes2
answers3327
viewsHow to make a motion system using touch in Unity?
When sliding your finger up screen executes the command and when sliding your finger down executes the command, an example of command would be a move up and a move down with the touch me return a…
-
9
votes2
answers1880
viewsUnity 3D and Android, how to handle txt file?
How to do in the Unity 3D read a arquivo txt line by line and store in a vector using C#. Well, I managed to manipulate the arquivo .txt, however in Android it doesn’t work. Follow the code I used.…
-
7
votes2
answers6698
viewsHow to turn a "Unity Project" into an . EXE?
I’m following the Nils videos on Youtube. After creating a project on Unity, how do I make an installer/. EXE for it? To run on Android, Windows, and others.
unity3dasked 9 years, 8 months ago Pablo Marques 145 -
7
votes1
answer3240
viewsHow to rotate the character as the mouse moves?
I’m learning how to play a game, but even if I follow it step by step, I think I did something wrong. It moves correctly but just keeps looking forward and does not turn, I do not know if it is…
-
7
votes1
answer307
viewsProblem with Unity 5 3D Development
I’m developing a game using the Unity 5 and when executing (give play in the game), the following error appears and I am not able to understand it, I think it has to do with some process denied, but…
unity3dasked 9 years, 6 months ago Ticiano Vasconcelos 113 -
7
votes1
answer1825
viewsHow to Identify and Count Prefabs Collision in Unity
I am developing a game for android on the platform Unity that is similar to the game Tetris, the difference that is geared to chemistry, and instead of descending the tetrominos will descend the…
-
6
votes1
answer96
viewsKeep a certain frame within an android app
I’m trying to manipulate the frame rate (frame rate) within a Unity scene, when I run it on the Unity platform, it works with the particular frame value I sent. However, when I pass it to my cell…
-
6
votes1
answer220
viewsHow to determine the character’s level by gaining experience?
I created this calculation based on multiples below to determine how much experience the character will need to level up. float NeededExperience(int level, float experienceRatio = 100F) { float…
-
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
answer248
viewsI can’t make the character of Nightmare disappear after he’s dead
I’m following all the steps of a tutorial on the creation of the game Nightmare, videos made by the channel "Playing with Nils", but after following all the steps, when I run the game and then I…
-
5
votes1
answer521
viewsShow ads admob interstitial (full page) after game over
I’ve already imported all the Admob files into my project and it’s all working, but I’d like to know how to get interstitial ads to show up when the WinPanel and the LosePanel stay active. Here is…
-
5
votes1
answer305
viewsMonetize Unity 5 games on Windows Phone 8.X
How do I display ads in my game made on Unity 5 to the platform of Windows Phone 8.X?
-
5
votes2
answers887
viewsCalling a string equivalent method
Consider the following class: public class AnimationManager : MonoBehaviour { public GameObject[] Enemies; void OnTriggerEnter2D (Collider2D o) { if (o.tag == "Player") foreach(GameObject Enemy in…
-
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?
-
5
votes1
answer446
views -
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
votes2
answers367
viewsArtificial Intelligence for Games in Unity
I’m creating a game at Unity, and I’m looking to do some bosses, but for that I need to study artificial intelligence, and I have no idea where to start, I looked for books but they are very scarce,…
-
4
votes1
answer369
viewsCharacter Camera does not move!
I’m doing a tutorial on Unity that I downloaded in the Asset Store on the following link https://www.assetstore.unity3d.com/en/#! /content/21028 I tried to make my character rotate to look towards…
-
4
votes1
answer1190
viewsUnity 5 Delay in animation
I just created animation to run and jump with Unity, but I have a problem when the player goes back to the initial state of Idleplayer, when I stop running or jump it continues for another second, I…
-
4
votes2
answers1010
views -
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…
-
4
votes1
answer389
viewsDodging an Obstacle without Navmeshagent
I need to create an obstacle clearance script but I can’t use Navmeshagent because this project depends on implementations where the Navmeshagent doesn’t work. See that in the image below there are…
-
4
votes1
answer101
viewsCS1526 & CS8032 error
By error translation says I have to put a ")" at the end of "type" however now there is a ")" at the end of the "type" I tried to change to "[ ]" but it didn’t work I tried to put 2 ")" as I have…
-
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
votes2
answers102
viewsProtect Class for namespace c#
I am developing a C# application for Unity 3D where it will manage several types of database (Mysql, Postgress...), the problem is that I have classes that manipulate each type of database within my…
-
4
votes1
answer2113
viewsHow do I exchange text in unity3d with a script I can’t remove?
I have a problem in unity3d and I don’t know how to solve. I have a certain script using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; using UnityEngine.UI; public class…
-
4
votes1
answer817
viewsUnity change the order of a game Object via code by C#
Well I have a Game Object called Party Frames. Inside it I have several prefabs with different names (their names are the character Ids) and are Uis of character faces. The only thing I want is to…
-
4
votes1
answer52
viewsHow to make a temporary powerup?
Hello. I’m developing a game in which the player throws some balls (shots), so I created a powerup that decreases the time between the thrown balls. I need to make the time between the balls back to…
-
4
votes0
answers160
viewsHow to make the player move on "slide" in Unity?
I’m new to Unity and I’m doing the tutorial Roguelike 2D. By default the player will move, theoretically, using one of those coordinates per shift y+1, x+1, y-1, x-1, or just one block at a time.…
-
4
votes2
answers402
viewsUnity: character walks side by side instead of front
Hi, I have a question on Unity3d 5! My character, instead of moving forward, with WASD, he moves sideways. My script: using UnityEngine; public class PlayerController : MonoBehaviour { void Update()…
-
3
votes1
answer2197
views"Bundle Identifier has not been setup correctly" while exporting game to Android
I’m making a 2D game for Android (still learning) with Unity, but I had problems when I tried to export to see how the home screen would look on Android. Unity made that mistake: Bundle Identifier…
-
3
votes2
answers675
viewsProblem with Unity 3D Development
I’m creating a game project in Unity 5-64bits, I’m in the creation part of the camera drive. When I was typing the Javascript code, trying to use parentheses always gave the following error: An…
unity3dasked 9 years, 7 months ago Pablo Marques 145 -
3
votes2
answers85
viewsFixed and unique value on Android in Unity 3D
I’m having trouble getting a unique and fixed value in C#, I need to get a value like this, for security reasons of my software. I’ve tried using the SystemInfo.deviceUniqueIdentifier, but…
-
3
votes2
answers300
viewsI installed Unity and gave error, I can not view the demo of the game nor put the scripts
These are the errors that appear when I open Unity: Assets/_CompletedAssets/Scripts/Helpers/RandomParticlePoint.cs(12,9): error CS0619: `UnityEngine.Component.particleSystem' is obsolete: `Property…
-
3
votes1
answer1075
viewsMethod that recognizes the touch of the MOBILE SCREEN C#
I’m doing an augmented reality app with Unity and vuforia. I created a class that makes the ball bounce, now I need to insert this ball movement to a touch on the mobile screen... Does anyone know…
-
3
votes1
answer162
viewsUnity 3D (5) Locking on IOS
I’m developing a game in Unity 3D, but when I run it looks great on PC , Android, browser, Linux, Windows, but when I run on IOS, it keeps crashing. I put only one cube and kept crashing. NOTE: I…
-
3
votes1
answer1283
viewsYou can take out advertising from Unity by starting games
I wonder if it is possible and how I do to remove the advertising screen from Unity when starting games.
unity3dasked 9 years, 1 month ago anderson seibert 569 -
3
votes1
answer1136
viewsFor Rotation on Z-Axis
I’m new to the c# code and I’m doing a basic Z-axis rotation in Unity 3d, but I’m having a problem to stop rotating. The initial code is this: using UnityEngine; using Sysstem.Collections; public…
-
3
votes2
answers10363
viewsWhat is the command to close or quit the game created in Unity?
I’m learning Unity and would like to know what the command to exit the game, ie close the application and also to know this command as I apply to press the back button of mobile Android execute such…
-
3
votes1
answer1831
viewsMove character to the point in Unity3d
I have a problem, I need my character to move a certain distance when I click the button, until then I can do. The problem is that when I do, he doesn’t "walk" to the point, he sort of "teleports,"…
-
3
votes2
answers200
viewsHow to take the camera counter rotation on Unity 5
I wonder how I can move an object in the opposite direction of the camera. Example: When I move the camera to the right in any position (0.30.0), the object moves in the opposite direction (0.-30.0)…
unity3dasked 8 years, 9 months ago Julia Chaves 71 -
3
votes1
answer651
viewsNightmares - Character does not move, stopped in Idle animation
I am following the step by step of Nightmares in Unity3d, but following the tutorials of Nils I came across a problem, after finishing the script the character does not move on the test screen, it…
-
3
votes2
answers1069
viewsHow do I know I clicked on a Gameobject in Unity?
I’m trying to create a game similar to Fruit ninja, but I know little of game programming, I understand code c#, could tell me a method if I clicked on a gameobject?
unity3dasked 8 years, 8 months ago Matheus Freitas 95 -
3
votes0
answers932
viewsApp icon does not appear on Android Smartphone
I am learning Android and ran on Unity the BUILD for Android and the file .apk was installed to the smartphone Apps. At the moment when the installation was successfully completed, two situations…
-
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
votes2
answers412
viewsHow to keep audio from one scene to another in Unity
I’m starting at Unity and would like to know if it is possible to make the audio of one scene be played in another, and this audio will be played in the other scene, starting from the moment it…