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
answer150
viewserror here in my script to make the character give respawn (load.level)
When I put this following script on unity and right after the association with a transparent form (without physics) and I click on play to test, gives an error saying that can not play (look at the…
-
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
votes2
answers335
viewsHow to specify object in getcomponent?
How do I specify each object in the getcomponent? I made this script, but I can’t specify for each animator. using System.Collections; using System.Collections.Generic; using UnityEngine; public…
-
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
votes3
answers3147
viewsUnity 3d: Passing information from one scene to another
My dear(a), I did a search to find troubleshooting that I couldn’t find in another source found on google. The idea is when a user fills the information in a scene identified as cena1 that contains…
-
0
votes1
answer251
viewsFacebook SDK 7.3 login system with Unity 5.3
I am implementing the Facebook SDK in my game created in Unity and I am having many problems. I tried to implement the Facebook login system: FB.LogInWithReadPermissions(new List<string>() {…
-
0
votes1
answer109
viewsHow to access the main thread from the main thread
I wonder if it is possible to call a method using a thread from another thread. The reason is that there are methods that can only be called from the main thread, and I need to call them in another…
-
0
votes1
answer172
viewsFirebase Auth and Unity
Does anyone have an example or would know how to verify email authentication within Unity using firebase
-
0
votes1
answer48
viewsSynchronize player and host movements
Hello. I am doing a school project and am following the tutorial of Unity Multiplayer Netorking. Everything worked correctly, but the tutorial teaches to have a player and a host, both with a…
-
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
votes0
answers15
viewsFind objects by a variable value with Findobjectsoftype
The command FindObjectsOfType can find objects by a specific type. I wonder if it can find objects by a variable value. For example: Find objects that have the variable x with a value of 10.…
unity3dasked 6 years, 6 months ago Pedro Prata 39 -
0
votes1
answer64
viewsAnimation to decrease the size of a cube in Unity
Hello! I’m in Unity using C# and I have a cube that, when I press q, it drops to 0.5 scale from scale 1 and when I drop q, he goes back to scale 1. I wanted there to be some quick animation of the…
-
0
votes2
answers5035
viewsHow to access classes in Unity 3D (C#)
I’m making a 3D game in Engine Unity, an FPS to be more specific and taking advantage of this experience to learn programming in C#, the one I’m having in school. But now I’ve come across a problem,…
-
0
votes1
answer731
viewsHow to put Character limit in Text (script)
I would like to limit the text that appears to the user... Inputfield for the user to write the text ,and make the final text receive the text from Inputfield... (wanted to add reticence ( ... ) at…
-
0
votes0
answers119
viewsAdd components when installing Unity
I searched numerous old pages as well as on the internet and did not find a solution. When updating Unity 2018.2, appeared on the screen some basic components to install. I ended up adding Facebook…
unity3dasked 6 years, 4 months ago Momo Deviluke 1 -
0
votes1
answer21
viewsUnity Firebase - Problem logging in
Good afternoon, I have a project I created to test firebase... Everything works perfectly however when I take this project and open it on another pc, I can not login to any user I created on 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
votes0
answers212
viewsNullreferenceexception: Object Reference not set to an instance of an Object
I’m making this mistake: Nullreferenceexception: Object Reference not set to an instance of an Object Enemymovement.Awake () (at Assets/Scripts/Enemy/Enemymovement.Cs:13) Code: using UnityEngine;…
unity3dasked 8 years, 4 months ago Gean Carlos 25 -
0
votes1
answer377
viewsZoom camera with touch on Unity
I am working with this code below controlling the distance from the camera to the character, this distance is the result of linear interpolation between a minimum and maximum offset, where the…
-
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…
-
0
votes1
answer70
viewsUnity C# error CS0411
I am having an error in 4 codes in which I do not understand the error. The error that is returned to me is this: error CS0411: The type arguments for method 'Component.GetComponent<T>()'…
-
0
votes1
answer228
viewsWhat is a byte array?
What is the byte array in Unity? I know we store data that can be converted into bytes.
-
0
votes1
answer52
viewsHow to use Olliders in Unity?
I’m creating a little basketball game, but I’m having trouble making the points system in this case (2 and 3). Right now I’m trying with Colliders and I’m having a hard time putting the two…
-
0
votes0
answers57
viewsExtract Texture from a 3D object
I am developing a game in Unity, and I need to introduce the user the image of the predefined 3ds objects in the game. Today I have an asset folder where I store my . fbx files, . Blender, . Prefab,…
-
0
votes1
answer53
viewsCS00103 The name 'flashspeed' does not exist in the Current context
This error message appears, what should I do? using UnityEngine; using UnityEngine.UI; // using System.Collections; public class PlayerHealth : MonoBehaviour { public int startingHealth = 100;…
-
0
votes1
answer2173
viewsUnity 2d - Enemy follow player
Well, I’m having trouble getting the enemy to follow the player, I did the code below: public class folow : MonoBehaviour { public Transform target;//set target from inspector instead of looking in…
-
0
votes2
answers488
viewsC# - XML Serialization error
I came across this error when trying to load an XML file through three scripts: One called Item, one Itemcollection, and the script to load the XML file. Item: using System.Collections; using…
-
0
votes1
answer990
viewsEnable and disable Children gameobject c#
Well I made a script where activate and disable in a gameobject, I wanted to know how to activate and deactivate children also within this script using System.Collections; using…
-
0
votes1
answer106
viewsUnity C#Object Selection
Well, I’ll get to the point, could give me a force in this script I’m doing, it selects using buttons -1 and 1, until it works more the previous gets bugged using System.Collections; using…
-
0
votes1
answer24
viewsManipulation of Unity3d scripts and properties?
Good afternoon, everyone! Next, I’m facing a problem. I am developing a game, where there is a script called Playermodel, that when starting the Battle, it comes with data that were pre-defined in…
unity3dasked 6 years, 11 months ago gabrielgrs 457 -
0
votes1
answer46
viewsLoad the photos of a specific directory in a texture string c#
I am making a new application and need to upload photo from a specific directory on the computer in this case c:\\Biosearchassets for a Gui Texture in unity3d I was able to find an example but it…
-
0
votes0
answers85
viewsArray Animation C# Unity
Error in the array of Animation, please see in the video that you will understand, at the time of the change of an object to another it is totally erased. Video public Animation[] Animation1;…
-
0
votes0
answers61
viewsUnity with Firebase + Google Authentication How-to
I’m in need of a help to use Firebase with Google Authentication in the documentation this very vague for me at least. example is this code where I get these googleIdToken and the googleAcessToken?…
-
0
votes0
answers264
viewsJump(Jump) method with more than one animation sequence
Friends I’m messing with the jumping animation of a character and this animation has two sequences, one of when walking, the other running: if (Input.GetKeyDown(KeyCode.Space) && liberaPulo…
-
0
votes1
answer77
viewsI cannot use Jsonconverter in Json.Net with Unity
So I’m developing a visual programming system in FSM, and for serialization, I used Json.Net, until then, all right, it worked correctly, however, I had to serialize UnityObjects And things got…
-
0
votes0
answers28
viewsRelate facebook to an existing application
Good morning, I own an android app and recently decided to start your marketing campaign. But one of the first steps is relating my facebook account to the app and I’m having problems with it.…
-
0
votes1
answer671
viewsUnity get gameobject disabled
My player has shield that is disabled in it, and I have a game manager wants to take care for when you can activate the shield or do not put when I instate the player in the scene the game manager…
-
0
votes0
answers42
viewsHow to verify that the user has completed the video on Admob for Unity?
Code: using UnityEngine; using System.Collections; using System.Collections.Generic; using GoogleMobileAds.Api; using UnityEngine.UI; public class AdmobScript : MonoBehaviour { int CoinOld; public…
-
0
votes1
answer69
viewsVariable does not receive new value
I have an object that should be "falling" over the screen several times, and it works. What I’m trying to do is that a variable called x gets an extra 1 every time this object passes through the…
-
0
votes1
answer424
viewsI cannot access a class in another UNITY 2D script
Hi having trouble calling Playerbase and playerBase in another script This is the mistake that gives: Assets/Scripts/Mainmenu/Selectscreenmanager.Cs(112,16): error CS0246: The type or namespace name…
-
0
votes1
answer1190
viewsUnity Object Reference not set to an instance of an Object
I’m doing a quiz in Unity and I have an error that I can’t solve, I’ve researched similar errors but I can’t identify, this message appears when I’m running the quiz Nullreferenceexception: Object…
-
0
votes1
answer35
viewsSet difficulty for a question and when selecting difficulty seek only those questions
Good afternoon! I am finishing a C# Quiz made in Unity. The question I have is, I have several questions that I would like to see an Asset. But I need to set the difficulties for each of the issues.…
-
0
votes1
answer61
viewsFirebase only works in Unity Editor and the pc does not work on Android
Can anyone tell me, what’s going wrong? It only works in Unity Editor. When buildo for android, does not work, but does not report any kind of error. While testing on pc works normally. public void…
-
0
votes1
answer77
viewsI cannot change the center of rotation of a Tilemap (Unity + C#)
I’m developing a 2D game using the Unity 2018.3.02. I’m using Tilemap for the construction of the phase, but this Tilemap will rotate. The Tiles in Tilemap form a square, that is, the filled Tiles…
-
0
votes2
answers289
viewsAdd Object to a List with C#
My objects are apparently being added to my list, but when I call the list in update() it does not perform as expected. public class CenaCozinha : MonoBehaviour { //Os Alimentos public GameObject…
-
0
votes1
answer601
viewsNullreferenceexception: Object Reference not set to an instance of an Object (Unity)
I saved my project, I closed the Unity and after I reopened the project, to my surprise, an error was presented on the console: Nullreferenceexception: Object Reference not set to an instance of an…
-
0
votes1
answer44
viewsAccess the position of a Transform in a Unity list
I have a list of Transform that contains the Spawnpoints I have within the game, I would like to find for each of the Spawnpoints their position. [SerializeField] List<Transform> spawns; The…
-
0
votes1
answer30
viewsCS0411 Unity error
I have this error in my code that I am not able to solve. the error code: error CS0411: The type arguments for method 'GameObject.GetComponent<T>()' cannot be inferred from the usage. Try…
-
0
votes1
answer59
viewsUnity - Error: Object Reference not set to an instance of an Object - Instantiate "Spawn" I need help
This is my first game and it runs on Unity but just when I use the shoot button of this error "Unity - Error: Object Reference not set to an instance of an Object - Instantiate". follows the code…