Questions tagged as 'unity3d'

2
answers

How to keep the audio from one scene to another in unity

I'm starting in unity and I wonder if it's possible to make the audio of one scene play in another, and that audio will play in the other scene, starting from the moment it stopped in the previous scene. If they know, please answer them well, pl...
asked by 10.08.2016 / 23:50
1
answer

PlayerPrefs Unity3D

I'm developing an android game but I'm having a hard time saving the input type. For example in this game the user can choose whether to play on the touch or accelerometer, in unity + remote this exchange works well but when I compile and instal...
asked by 07.06.2016 / 15:30
2
answers

Collision and reaction Unity 3d

I have a doubt in a script, I'm creating a game made in 3d unity. The question is, how do I identify the collision between 2 objects and add a jump action to one of those objects, if anyone can help, I thank you very much. Code - does not wor...
asked by 02.04.2016 / 19:29
2
answers

How do I limit the rotation of 2-axis prefabs in Unity?

I need a prefab to turn when it reaches 2 positive values in Y. In case it reaches 65º. My code is like this, it just is not working. private float m_MaxYRotation = 65f; private float m_MinYRotation = -65f; private float velocit...
asked by 22.02.2016 / 19:35
1
answer

How to test an Unity-created app for Android in an emulator with logcat as in Android Studio?

In unity veloping for Android, it does not test exactly like an emulator as Android Studio . I know I can generate a apk and test on the physical device, but I wanted to test on an emulator or even on the physical device with log...
asked by 07.02.2016 / 20:17
2
answers

I'm not getting the first animation wheel of my game

Good afternoon, I'm having a hard time understanding what this error is, I still have only a few days in the programming world. Someone can help me. using UnityEngine; using System.Collections; public class Player : MonoBehaviour { public...
asked by 01.05.2015 / 21:34
1
answer

I am creating a queue, and I can not develop the function logic so that the previous object assumes the new released position - C #

I'm using unity3D, so my queue is made up of GameObjects, there are 7 GameObjects queued next to each other and my purpose with this code is that with every click of the user - " SimpleMove Function "- the objects move forward, except the last...
asked by 10.07.2015 / 21:48
1
answer

Player's lifeless method does not work

I'm doing a script to take life out of the player when something collides with it, I've reviewed the code dozens of times and can not find the error. The collision code is tied to enemies: PlayerHealth ph; public int danoAtaque = 10; v...
asked by 26.05.2015 / 21:51
1
answer

How to stop emitting particles after a few seconds?

I have a simple code that spawns particles when the player gets stopped at the trigger. But they do not stop being issued and I would like them to stop after a few seconds. How can I do this? if (other.gameObject.tag == "Player" && Inp...
asked by 19.09.2018 / 04:29
0
answers

How to use functions of class A in class B and vice versa?

Hello, I'm trying to make a game but I found a problem where I can not solve it, maybe the answer is pretty stupid, but since I'm a bit busy, I can not find it at all. This is my first class or Script, which controls the player public class...
asked by 18.06.2018 / 02:13