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
-
0
votes1
answer1815
viewsStatic method has no access to class variable
Hello, I have the following problem: I have a static method that uses a class variable, but Unity gives me the following error: \Assets Scripts Gamecontrol.Cs(3,3): Error CS0120: An object reference…
-
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
answer661
viewsCannot implicitly Convert type error
I’m having a mistake CS0029, Cannot implicitly Convert type int' toUnityengine.UI.Slider' How can I fix it? First Code: using System.Collections; using System.Collections.Generic; using UnityEngine;…
-
0
votes1
answer59
viewsHow to make text remain txt in full Unity
The idea is to create an entry where the user enters data and is registered in txt and can add other data as a simple schedule. The screen asks: type your name: Please enter your age: Enter your…
-
0
votes0
answers85
viewsUnity: distance with addforce
I’m creating a game where you apply a certain force to the block and it walks vertically and it has to stop at a certain point and I want to do this by AddForce. But on paper, I’m using the formula:…
-
0
votes1
answer1350
viewsChange Sprite image when Unity is clicked
I need that when a button is clicked, if the answer is correct the image (a bush) change (to a cow in front of the bush). public class mudaSprite : MonoBehaviour { public InputField dgt; public Text…
-
0
votes0
answers152
viewsWhere do I start to integrate my database game?
I want users of mine Mobile game can log in and save game information, and have the option to share some information (for example a created character) for other users to download and use. The…
-
0
votes1
answer162
viewsDrag and drop Unity
I’m trying to develop a simple Android game in Unity, with drag and drop function. I used the following method to catch the object: public void drag(){ transform.position = Input.mousePosition; }…
-
0
votes0
answers89
viewsDetermine the character’s flying time in Unity
I need him to execute the command to fly for a certain period. Example: The character has a jetpack, if you press the "space" key twice it will activate the flight code, only the astronaut only you…
-
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
answer21
viewsRotation from z to 90 degrees when falling to the ground 2D design
I’m pretty clueless on the subject, but I’m learning how to program. To make my platform game more cool I enabled the character’s rotation, but I want to make a way that when falling and touching…
unity-5asked 4 years, 1 month ago Luigi Mendes Cabrini 11 -
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
answer5333
viewsWhy does VS Code auto-complete not work for Unityengine library elements even with the built-in extension?
The problem is just this, I’m developing a new game by Unity and use Visual Studio Code as editor, and need to auto-complete to help, but even with the extensions "Debugger for Unity", "Unity Tools"…
-
0
votes0
answers52
viewsHow to fix the X-axis and prevent the rotation of the object alters the axis?
Every time I move the object it tends to rotate, due to its natural motion, but when it rotates it changes the x-axis, causing its movement to be confused by losing the reference of the axis. How do…
unity-5asked 5 years, 2 months ago Lucas Ferraz 1 -
0
votes2
answers63
viewsClientdisconnected due to error: Timeout and Ready with no player
Hello, I have a connection problem in my multiplayer project. When creating a local match, everything seems to work fine, however, the console displays the following warnings when I build and create…
-
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…
-
0
votes1
answer48
views -
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…
-
-1
votes1
answer36
viewsAudiosource Error with Unity prefabs
I made some Prefab and put some of them on the scene while running a script. The script is responsible for destroying the enemy when a player steps on a Colisor in his head (that Colisor is the…
-
-2
votes1
answer30
viewsError In Unity5 Code
I have two mistakes , I’m not able to fix…
-
-2
votes1
answer40
viewsWhat’s Mathf.abs for.
I am programming in Unity and I see many people using it, and sometimes I even use it in my scripts but I don’t understand exactly what it does "returns", please explain to me?
-
-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;…