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
-
0
votes1
answer71
viewsUnity C# | Problem Using For Loop Inside Update()
Hello, My problem is this, I have a list of events that happen at a certain time, which is randomized, and when an event occurs a new timer is drawn to the next one adding another 10 seconds, all…
-
0
votes1
answer32
viewsError in Unity 3D Javascript code
I’m doing a Voxel World Minecraft style in Unity 3D, but is giving the following problem: BCE0051: Operator '*' cannot be used with a left hand side of type 'System.Type' and a right hand side of…
-
0
votes1
answer48
views -
0
votes2
answers106
viewsHow to order questions randomly?
I’m finishing a project of Quiz Unity game in C#, let me try to explain what I need, I already ask the random questions, but I want the answers to be displayed at random as well. I have a list of 5…
-
0
votes0
answers231
viewsmy script doesn’t work in Unity I don’t know what my error is, but this message appears " the Associated script can not be Loaded, "the script is this
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { public float Speed; public float JumpForce; …
unity3dasked 4 years, 2 months ago Raphael Hagio 11 -
0
votes1
answer556
viewsVisual Studio Code does not suggest Unity methods and classes
If I type the code and pass it to Unity, Unity runs the code normally, but Visual Studio is not recognizing Unity (as you can see in the colors of the photo below), which makes it very difficult to…
-
0
votes0
answers8
viewsNullreferenceexception: Object Reference not set to an instance of an Object gameController.Update Unity 2D
I’m starting to develop games now, and I was trying to make a system for when the player was at a certain distance from the object and pressed space the object moved in the direction the player was…
-
0
votes0
answers32
viewsDelete hidden vertices Unity 3D
I was studying procedural generation of land using mesh and decided to create a world like Minecraft. And I need to make it just create cubes that are visible to the player. Because there are cubes…
-
0
votes2
answers78
viewsHow to create a dynamic selectable list on an object in Unity?
I would like to create a list that would appear when the user clicks a button. The list would show the information contained in the database, and the user would select which one would give…
-
0
votes0
answers39
viewsCharacter does not follow mouse arrow. UNITY C#
I am creating a game in Unity and I made a code in the point() function for my character to point the gun in the direction of my cursor always. But it’s not happening. using System.Collections;…
-
0
votes1
answer57
viewsNullreferenceexception with Unity
I am having this error when trying to implement a theme search system in the database. The chronological order of events is as follows: A screen is shown for the user to enter the desired questions,…
-
0
votes0
answers11
viewsRender Post Processing effects using Commandbuffer in Unity
Good afternoon. I would like help to make a post-processing system. I don’t know much about commandBuffer, so I’m not getting it to work. Here’s what I need to do. Render the first effect on top of…
unity3dasked 3 years, 9 months ago Matheus Markies 11 -
0
votes2
answers83
viewsError "Nullreferenceexception: Object Reference not set to an instance of an Object" in Unity
I’m trying to develop my first game with Unity, a Space Invaders, and I was able to do a lot of things, but when I get to the part of the code to create the enemy’s movement, I’m getting this…
-
0
votes1
answer31
viewsHow to spin a Gameobjet without spinning his son?
I wanted to know a way to rotate the object without turning the canvas inside it. My Spinning code is like this: void FixedUpdate(){ if(facingRight == false && moveInput > 0) { Flip(); }…
-
0
votes0
answers5
viewsError when building with Android Studio with Vuzix Speech SDK
I exported a project in Unity to Android Studio in order to implement the voice commands function of Smartglass Vuzix M400, the problem is that I am trying to build and the following error appears…
-
-1
votes2
answers78
viewsUnity3d - Problem with the authentication of the Bitrave plugin for connecting to Azure
I’m following the tutorial: http://www.deadlyfingers.net/azure/unity3d-game-dev-with-azure-mobile-services-using-bitrave-plugin/ and when logging into Unity Editor appears the message: "Response is:…
-
-1
votes1
answer128
viewsWhy do I have to run this code twice to rotate the 3d object?
My code’s a bit tricky, but I only got it the way it’s down. Plus I have to run twice to be able to turn the object and I don’t know why. I’d like to understand what’s happening here. var device3d =…
-
-1
votes1
answer659
viewsTake Prefab position and compare with other Prefab within a grid? Unity 3D
I’m developing a tetris-style game, but focused on chemistry. Instead of missing a complete line and scoring, the user needs to form a molecule. For this, each element (H and C) is a different…
-
-1
votes1
answer52
viewsWhat size to use for imported 3d models in Unity 3D?
I’m starting a new project in Unity 3D using free 3d models from the internet, I imported a building but when I opened in Unity it was gigantic compared to the standard character of Unity! My…
-
-1
votes1
answer551
viewsQuaternions in Unity3d
Well... I wish I knew more about Quaternions in Unity... I didn’t understand very well what they do... and why they use the Quaternions and not the Angles of Euler... I didn’t find good material…
-
-1
votes2
answers35
viewsHelp with Compilation for Apk
Oops? I went to start a mobile project to get out of the production routine. exe, and I came across a problem during the build process of any project, initially I thought it was a jdk and sdk…
-
-1
votes1
answer16
viewsLock rotation when clicking
I’m making a Puzzle but I’ve caught it in one part. It seems simple, but I can’t find a solution. Well, I’m using the mouse to click on an object so that it will rotate to a certain angle, but I…
-
-1
votes1
answer20
viewsC# Scrpits that are imported as a component in UNITY of the not found error every time you close the program
After restarting Unity the image error appears for all the project scripts. I created the script and imported and also tried to create direct by Add Component to check if it would not disappear, but…
-
-1
votes1
answer22
viewsI cannot access any class outside the same script. C++ IDE: Unity 2019.4.29f1
EX: Enemy: public class Inimigo : MonoBehaviour { public static int ContadorInimigo; public Inimigo() { ContadorInimigo++; } } The second script already Gamecontroll: void start() { Inimigo inimigo1…
-
-1
votes1
answer24
viewsError in Unity3d
How can I fix this error? I found nothing about it on the internet... this is the script `using Unityengine; using Unityengine.AI; public class Bluecubebehaviour : Monobehaviour { private Rigidbody…
-
-1
votes2
answers58
viewsObject Reference not set to an instance of Object
Good evening, I’m trying to take a function that be in another script and pass it to a button, only to be giving this error that be in the title. int indice; public Button Ant; public ScriptName…
-
-1
votes1
answer214
viewsHow to import libraries into Unity 3d
So, I’m with a 3d Unity project, where I need to adjust some problems, I’m completely new to Unity... I cloned the project in git. But there was a git ignore, in which these folders and files were…
-
-1
votes1
answer71
viewsUnity revolution counter
I’m studying the game Flippy Knife, and I used Addrelativetorque to turn the knife and apply the 360 that always adds 1 point, but when trying to count the score checking if the knife has reached a…
-
-1
votes1
answer72
viewsAccessing Animator Unity 2019 methods
Good afternoon guys I’m having the following doubt, I created animations on Unity Animator doubt is as follows as I access the methods cracked in the Imator via script like the Grounded there and…
unity3dasked 4 years, 10 months ago Dhonatan Silva 1 -
-1
votes2
answers46
viewsDo parameters harm physics in Unity update method?
Well, basically I created a Playercontroller class and was separating some methods until creating a Playermechanics method(float jumpForce, etc...). When placing this method inside Update() I…
-
-1
votes1
answer39
viewsReact-Native with 3D Animation | sensor accelerometer
all right? I’m starting a very unusual React-Native project involving React-Native and 3D sensors. I have an accelerometer, motion sensor, which is attached to strategic points of the human body.…
-
-2
votes1
answer235
viewsHow to initialize webcam in a Unity3d application?
I’m creating an Augmented Reality app using Unity and Vuforia. The application uses a webcam, in Unity performing the tests it is working, but when I export the application to Windows only appears a…
-
-2
votes1
answer134
viewsOndestroy in Unity
Hello, could someone explain to me how Ondestroy() works in Unity? What is your specific action. The documentation is very confusing.
-
-2
votes1
answer20
viewsMy panel dont close
im Tring to makeI’m trying to make a button that closes the hack_panel but it didn’t work public class Level1_Controller : MonoBehaviour { //Variables public Button Hack; public Button Develop;…
-
-2
votes1
answer68
viewsError A namespace cannot directly contain members, such as fields or methods
Mine’s making that mistake twice. here is my command: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Porta : MonoBehaviour { private Animator porta;…
unity3dasked 4 years, 7 months ago Paulo Henrique 1 -
-3
votes1
answer454
viewsCode build error in Unity
this asim using UnityEngine; public class PlayerMovement : MonoBehaviour { void Awack() { floorMask = LayerMask.GetMask ("Floor"); anim = getComponet <Animator> (); playerRigidbody =…
-
-3
votes1
answer109
viewsUnity code does not compile
using UnityEngine; using System.Collections; public class Player : MovingObject { public int pointsPerFood = 10; // Numero de pontos cada vez que pegar comida. public int pointsPerSoda = 20; // ""…
-
-3
votes1
answer15
viewsI’m having problems with Unity touch, does not recognize all ringtones and pressing the player is stopped
need help, qro click on the screen and every touch change gravity my Cod: (ta no update) if (Input.touchCount > 0) { eixo *= -1; } but it seems that he doesn’t recognize all the touches and if…
-
-3
votes1
answer37
viewsHow can I do the smoothed rotation on Unity?
Hello! I’m testing a 2D, platform-style drive. Basically, I want when the player presses "A," it rotates to the right. I managed to do it, but I want him to turn around, not just out of nowhere he…
unity3dasked 3 years, 8 months ago Erick GameDev 1 -
-3
votes1
answer43
viewsHow do I get randomly generated piranhas to move to the propeller? UNITY C#
Well I need randomly created piranhas to move towards the helicopter and in contact cause a damage (reducing the player’s life). this is the Spawn code with random location. using…
-
-3
votes2
answers27
viewsUnity Nullreferenceexception: Object Reference not set to an instance of an Object Player.Update() (at Assets/Scripts/Player.Cs:22)
I am new to Unity and have already written the code and according to the tutorial I saw but not solved using System.Collections; using System.Collections.Generic; using UnityEngine; public class…
-
-9
votes2
answers440
viewsObject orientation is the part of c# used for games?
That there are differences between the c# language for form programming and for other areas, I know, but I have a question: Is the object orientation the part used for game programming? If not: What…