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
-
1
votes1
answer396
viewsHow can I put these random questions?
using UnityEngine; using UnityEngine.UI; using System.Collections; public class responder : MonoBehaviour { private int idTema; public Text pergunta; public Text RespostaA; public Text RespostaB;…
-
1
votes0
answers64
viewsColliders on Unity3d on C#
I’d like to detect if my cube on the left is touching the side of my cube on the right, but I can’t do that. Is there any method without having to create null objects, raycasts or linecast that can…
-
1
votes1
answer215
viewsAssistance with Rotationing(Quaternion.Slarp) in Unity
I want to make my object rotate 120 degrees and set a time for it. But instead of rotating 120 degrees it goes to degree 120. How to fix this? Transform inicial; float tempo; float angle; void Start…
-
1
votes1
answer237
viewsUnityengine.UI does not work
So, I’m learning programming and in the course the teacher put a code in the algorithm that is "using Unityengine.UI" to be able to put the commands and Talz, only when I went to do in my Unity, it…
-
1
votes0
answers46
viewsProblems in the Android version
I’m having trouble with a project. I set a button to turn the sounds on and off, works on the pc, but when I put it on the phone it only works if I click two places at the same time on the touch, if…
-
1
votes0
answers185
viewsHow can I change scenes in Unity while maintaining the current characteristics and values of my player?
Good afternoon. I have a project at Unity in C# to practice here, and I have the following difficulty: My player will have some bool variables and an inventory of items that I need to keep when…
-
1
votes1
answer122
viewsSimple doubt of C# in Unity
I don’t know anything about C#, but I’m trying to develop a simple project in Unity. It consists of moving a crane. I made the code to move the bridge, but if I keep holding the button it keeps…
-
1
votes1
answer61
viewsHow do I stop an array through a function?
I am writing a code in Unity you need to pass several values through a function, I decided to use the array in the function statement, however when I try to recover the values of the array all of…
-
1
votes1
answer414
viewsHOW TO PERFORM FUNCTION EVERY TIME PERIOD - UNITY
I need to perform this function - which creates a randomized platform in a randomized position - every 3 seconds . How does?? void CreatePlatform() { System.Random random = new System.Random(); int…
-
1
votes1
answer112
viewsAlternative to Overlapping of Sprites
You’ve probably seen/played a game where you can change your character’s outfit/outfit/appearance. I’m building a little game for Android that provides this function, and currently I get it using…
-
1
votes0
answers65
views -
1
votes0
answers211
viewsHow to make the enemy turn to the player?
Hello, I’m developing a game in which the enemy follows the player to try to capture him. But he follows the player backwards, face back, or sideways. Is there any way that the enemy follows the…
-
1
votes0
answers27
viewsProblem in Webbrowser’s Asset
Hello, I’m having trouble in an Asset I recently acquired, where it accuses a problem called Sharedpluginserve.exe, it is an Asset that allows browsing the internet through Unity, the problem occurs…
-
1
votes0
answers45
viewsMy class "Playerbehavior" is not inheriting the other class "Characterbase"
I’m not getting access to the class CharacterBase of my Script PlayerBehavior using System.Collections; using System.Collections.Generic; using UnityEngine; public enum TypeCharacter{ Priest = 0,…
-
1
votes1
answer214
viewsCS0118 error in Unity "player is a namespace but a type has expected
Who can help me, I am in great need. It is a project for a game in Unity 2d: using System.Collections; using System.Collections.Generic; using UnityEngine; //using player ; //using Monobehaviour;…
-
1
votes2
answers1138
viewsHow to change property of another object?
I have a screen with two 2d objects: player and enemy, both are prefab of an object called fighter. They have three properties: attack, defense and hp. I created a script and included in the camera,…
unity3dasked 7 years, 1 month ago Italo Rodrigo 4,344 -
1
votes0
answers125
viewsHow to remove a Node from the database using Firebase Realtime Database for Unity
I use synchronized lists with Firebase Realtime Database for Unity and I need to improve them. I need to find a way to delete a single Item from the list without having to: Download the whole List.…
-
1
votes1
answer565
viewsUnity, how to move a cube so that it always walks 1 in 1
I’m creating a learning game in Unity (C#),made this code to move my player from one to one square using System.Collections; using System.Collections.Generic; using UnityEngine; // Esta classe é…
unity3dasked 6 years, 6 months ago Pedro Prata 39 -
1
votes1
answer96
viewsError using Opengl GTX GLM library
I’m trying to compile in linux Ubuntu a project that uses the quaternions for rotation of 3D objects of the glui library, when I compile the code the system accuses the following error : Code says…
-
1
votes0
answers118
viewsWhy is it that when I change scenes, Dontdestroyonload doesn’t work?
I have a gameObject with the script with all the information about the level, Xp and etc for the game. It is loaded into the scene Loader, when I switch to the next scene, I don’t want to miss this…
-
1
votes1
answer67
viewsPrint whenever variable receives a certain value
I am developing a simple game in which whenever an object exits the screen a variable of name score gets +1. The idea is simple, what I am trying to do is to print the value of the variable score…
-
1
votes0
answers74
viewsI’m doing the game Nightmares from Unity and in the playerMovement script my character just doesn’t rotate looking at the mouse
This is my code, I thank you in advance for your help. using UnityEngine; public class PlayerMovement : MonoBehaviour { //velocidade do jogador public float speed = 6f; //vetor responsavel pelo…
-
1
votes1
answer122
viewsCollision Fires Gameover on Unity
I’m developing a game in Unity that consists of building a building made by blocks, and my game has an initial block and the rest of the blocks are all the same and they are generated through code…
-
1
votes1
answer38
viewsWhy do colors stop changing from the totalTimer = 300 +/-
Basically with this code I’m trying to make the color and emission color of the object change systematically at a predetermined time, but whenever the totalTimercomes around the value of 300 colors…
-
1
votes1
answer57
viewsMake effect timer in Unity
hello I am making a 2d platform game in Unity and I made an item that to Oce Pegalo Oceoce will be able to jump higher but I would like to put a timer (I don’t want it to appear on the screen)for…
-
1
votes0
answers23
viewsUnity3d Because my camera is rotating sharply, character even keeps blinking
I made a camera for my game in third person, but when it rotates together with the player, the player sometimes goes away, it seems as if the fps goes down (but it’s just impression). I have done…
-
1
votes0
answers24
viewsI cannot instantiate an object from an Assets(Asset Bundle) package
using System.Collections; using System.Collections.Generic; using System.IO; using ModIO; using UnityEngine; public class ModScript : MonoBehaviour{ public string bundleName = "modbundle"; private…
-
0
votes1
answer1217
viewsOnline Server and Unity 3d
Considering a game created on Unity-3d . What We Should Know to Make You an Online Multi Player?…
-
0
votes1
answer94
viewsWhat data sources can be used in Unity3d?
In all the Unity3d data storage examples I saw, they used XML. Where other data sources can be stored ?
unity3dasked 10 years, 3 months ago Conrado Basso 204 -
0
votes0
answers32
viewsUnity IAP Iphone 6
I am using SIS and Openiab in my shop, while testing on iphone 5 Ios 8.1.3 all ok. When sending to apple they reject the app saying that when you click the buy nothing happens (this on iPhone 6). Is…
unity3dasked 9 years, 8 months ago Gabriel Augusto 71 -
0
votes0
answers392
viewsWhy does my Playerprefs (Unity) not work on Android?
That’s my first question and first post here! Well, I’m playing a game on Unity android-facing and created a javascript to save and calculate some values. Here’s how it works: My game has some…
-
0
votes1
answer417
viewsUnity Error CS0103: The name 'newRotation' does not exist in the current context
I am following the series of Nils Nightmare Unity Training day and I am in video class 2, but when compiling gives this error: Error CS0103: The name 'newRotation' does not exist in the current…
unity3dasked 9 years, 7 months ago jotagenazar 9 -
0
votes1
answer313
viewsUnity error "Animator"
I was playing a game and this problem appeared: Asset 'Playerac': Transition in state 'Anystate' doesn’t have an Exit Time or any condition, Transition will be Ignored…
-
0
votes0
answers921
viewsHow to create a multiplayer game with bluetooth?
I’m doing a multiplayer game on Unity3d and I’m using Unity’s new networking API, I’ve seen that there are some plugins for Unity that make it possible to create a multiplayer via bluetooth, but are…
-
0
votes1
answer96
viewsError of arguments in Unity Photon
I was developing an online project and I cited the following function - PhotonNetwork.CreateRoom, and the following error occurred to me: Assets/Scripts/Sindico.Cs(53,31): error CS1501: No Overload…
-
0
votes1
answer45
viewsUnity Error Developing an Online Project
How I fix this mistake? Assets/Online/Online.Cs(139,25): error CS0246: The type or namespace name `Playerbehaviour' could not be found. Are you Missing a using Directive or an Assembly Reference?…
-
0
votes3
answers327
viewsLogo configuration when generating apk in Unity 5
Does anyone know why the logo Unity the apparatus is not vertical follows the image to facilitate understanding I stopped to be in vertical position the rest of the configuration did not change…
-
0
votes2
answers241
viewsPlayerprefs in Unity with Boolean variable?
The PlayerPrefs Has something similar or it itself can use boolean variable. example: PlayerPrefs.GetInt() // e para inteiros
-
0
votes1
answer698
viewsProblem changing texture of a gameobject in Unity
I’m doing a job in Unity where the goal is to detect facial expressions with Kinect. In Unity the default expression is "neutral" and depending on we change expression to "smiling" or…
-
0
votes0
answers53
viewsAnimation does not charge -Nightmares
In the game Nightmares my character, despite spinning around the mouse, and getting around, does not perform the Animation Move that was to be done while they were walking. Follow here a print of…
unity3dasked 9 years, 3 months ago pedrofarah 33 -
0
votes3
answers2105
viewsHow do I get an object back to its initial position in Unity?
I have an object that is hit by the raycast and use cObj.transform.position = Vector3.MoveTowards(cObj.transform.position,main.transform.position, step); for the object to go against the camera. How…
unity3dasked 8 years, 8 months ago Julia Chaves 71 -
0
votes1
answer103
viewsFailed My C# Nils Video Script (No Board Manager)
Nils , or someone who knows how to answer me, there are several errors here in my tab of the console , I’m new in this area and this talking about errors with ) ] } and basic programming things!…
-
0
votes1
answer70
viewsWhat are the Application commands in untiy 5.3?
What is the new command of unity 5.3? The Application.Quit(); is obsolete and already I want to change, not to bug, someone can help me ?
-
0
votes0
answers106
viewsMy tetris game descends one piece and in the second piece it game over
My game tetris descends the first normal piece, but in the second piece there in the same high, he of the game over. As if the second piece had reached the top entering the condition of the GAME…
-
0
votes0
answers331
viewsHow to update a Unity game
I have a game posted on Googleplay, this game only has one scene (menu), and the remaining dice of the game are on my server. How can I update my game (menu scene), with more game dice from my…
-
0
votes0
answers190
viewsI went to make a game in Unity and gave the error Nullreferenceexception
The code is this: using UnityEngine; using System.Collections; public class EnemyAttack : MonoBehaviour { public float timeBetweenAttacks = 0.5f; public int attackDamage = 10; Animator anim;…
-
0
votes1
answer288
viewsMap to Unity3d
I am developing an application in Unity3d that resembles the Waze application, but for this I will not be able to use a Google Maps API, for example, Static Maps, because I will need something that…
-
0
votes1
answer86
viewsUnity Roguelike help
The Unity compiler is presented with this error when implementing the Player control. Assets/Scripts/Player.Cs(58,33): error CS0115: `Player.Attemptmove(int, int)' is marked as an override but no…
-
0
votes1
answer225
viewsApply force by clicking and dragging Unity
Good morning, I’m a beginner in Unity so sorry if I talk nonsense haha I am developing a game where I need to put a ball in a basket, what I am not able to do is to click and drag the ball to apply…
-
0
votes2
answers622
viewsErrors Script C# Unity3d 5.2.0f3! Errors with Rigidbody2d
I have a problem with a C# code that I am using to make a game in Unity3d Version 5.2.0f3 This Code I picked up on a video of Playing with Nils ( Youtube channel that teaches how to develop games.…