Questions tagged as 'unity'

1
answer

Is there any way in which you can trigger functions of an object when detected with a Raycast2d in Unity?

I'm trying to operate a function of an object by detecting by raycast, that is, I press the mouse on the screen, create a Raycast2D and detect if it collides with a 2D object, and if that happens, trigger a function inside that object, for examp...
asked by 04.08.2018 / 03:06
0
answers

Using Unity the VideoPlayer Component with URL has no auido

The video plays very well, but it does not have audio when it should play it too using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.Video; public class StreamVideo : MonoBeh...
asked by 11.07.2018 / 23:41
1
answer

Joystick in unity

I'm doing a little application in unity, a sphere with two joysticks, the first joystick moves to that sphere and the second one zooms, the problem is that I do not know how to call the second joysctik to write the necessary code, because what I...
asked by 15.06.2018 / 22:31
0
answers

Problem with chatbot "dialogflow" in Unity

I have entered the asset of Api.ai currently called Dialogflow attached link: Unity - DialogFlow - Chatbot It comes with an example scene that when tested, the following occurs: Displays a string of code instead o...
asked by 10.05.2018 / 18:44
0
answers

Unity 2017 move two different objects simultaneously on Android

I'm trying to make a kind of Pong for Android. I have a GameObject for each player, differentiating between them by the Tag they carry. In principle I programmed the controls for OnMouseDown () and OnMouseDrag (), but I realized that in the mobi...
asked by 29.04.2018 / 12:45
1
answer

List of Levels in Unity with C #

In the project where I work (with Unity 2017.3) I must use a single scene for all levels of the game. Each level has its class with its particular implementation, but they all inherit from the Level.cs class. What I need is to store the levels i...
asked by 03.04.2018 / 20:07
1
answer

how to make two ImageTarget read me the spirte that I have selected

I have the following situation, I am using two identical images, what of different color to read it AR of Vuforia . When creating the database, I defined each one with a pattern, in this case it would be a purple one and the second one pink. Ad...
asked by 29.01.2018 / 21:13
1
answer

How to create a combat message system?

Hello my problem is that I see the need to implement a service of sending and receiving messages between the issuing user and randomly to a receiver that is online Clash Royale style, and then move to the process of creating a Room in Photon and...
asked by 06.01.2018 / 21:31
0
answers

Rotate an object with the movement of the head in Unity for a Google CardBoard app

I've made a simple application in unity for Google CardBoards. The scene consists of an object in the center and the main camera of the scene. I have entered all the prefabs of the Google CardBoard SDK. My problem is that I would like the object...
asked by 07.12.2017 / 11:51
1
answer

How do I change the block? Unity 3D c #

I have the following code: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class BuildSystem : MonoBehaviour { RaycastHit hit; Ray ray; Vector3 Paredposition; public...
asked by 16.12.2017 / 05:54