Questions tagged as 'unity3d'

1
answer

How do I limit the movement (Touch) of a character to 3 specific points? Unity C #

I would like to know how to limit the position of a character on the Y axis in the Up, Mid, Down positions. In the game the character runs while obstacles appear and dragging the finger up, if it is in the "down" position, it moves to the "Mid"...
asked by 30.03.2016 / 22:39
1
answer

"OnTriggerEnter2D" function is executed even if "Is Trigger" is disabled

I have the GameObject "player" with a box colider with the "Is Trigger" option unselected, ie it is not a trigger. Inthescriptassociatedwiththeplayerthereisthe"OnTriggerEnter2D" function: //... void OnTriggerEnter2D (Collider2D o) { pr...
asked by 15.11.2015 / 16:23
1
answer

create unity3D custom mask

How do I create a date mask on the 3D unity platform, so that when I type it, it automatically places the "/" characters? Example: 00/00/0000     
asked by 26.02.2016 / 14:31
1
answer

Is it an error in Unity or does it interfere with the program?

This error appeared in Unity I would like to know what is wrong and how to solve it    There are inconsistent line endings in the 'Assets / Scripts / teste.cs'   script. Some are Mac OS X (UNIX) and some are Windows. This might lead   ...
asked by 29.01.2016 / 13:15
1
answer

Questions about Script Coroutine c #

I made a script next to the coroutine, but rather that it does not work msm not giving error My real intention is to make the button have a delay of up to 10 seconds before making the transition to another canva Could you give me strength?...
asked by 03.08.2017 / 01:31
1
answer

Compile error "A new expression requires () or [] after type"

I'm creating a game based on a video on youtube ... And in this video has a link to the site with the codes, I copied the codes and pasted exactly as it was then to modify and do it my way ... But it's giving Unity errors that I can not solve!...
asked by 27.02.2015 / 21:32
1
answer

Error using OpenGL GLM GTX library

I am trying to compile in Ubuntu Linux a project that uses the quaternions to rotate 3D objects in the glui library, when I compile the code the system reports the following error: The Code says that the error has something to do with the GLM...
asked by 05.06.2018 / 22:59
1
answer

Unity, how to move a cube so that it always goes 1 in 1

I am creating a learning game in Unity (C#) , I made this code to move my player one by one using System.Collections; using System.Collections.Generic; using UnityEngine; // Esta classe é responsável por movimentar e interagir o objet...
asked by 25.04.2018 / 23:56
1
answer

For What is this command?

Hello, I'm having a question and I need a C # command to enable and disable a layer inside the animator in 3d unity. This server command for this? Animator.GetLayerName ("Nadando"); In case I want to select the layer "Swimming".     
asked by 19.03.2018 / 19:41
1
answer

Load list from txt in C #

I have the following problem, I get the data of a txt that I need to return in the form of List<List<string>> , however I can only get txt from a string [] linha , so I was adding string per string in my list, this it wor...
asked by 30.11.2017 / 00:04