Questions tagged as 'unity'

1
answer

Multi-scene songs in Unity?

You see, I want to make a background music in Unity but I want it to continue even so change the scene, you know if you can, and if so, how?     
asked by 06.11.2018 / 02:59
1
answer

How can I ask at the script level (C #) in Unity on which platform the game is running?

I would like to develop a multiplatform game in Unity mainly for Windows and Android. The problem is that in Android I would put controls using UI to allow the user to interact with the game in the absence of the default controls that my Windows...
asked by 17.09.2018 / 15:07
1
answer

How do I make an action last for a few seconds? Unity c #

I need help in an action, that is to say that I have a collision function, what I want to do is that when the player object collides with that object that has the collision method my player turns red by the time that has entered the field of col...
asked by 07.12.2017 / 03:03
1
answer

Help with a job for the school, I can not detect a "public class"

As part of a project for the school I am trying to create an Idle / Clicker game, (With Unity) and I am learning the most basic programming, I am studying and that, but as I have not had much time , because I am being guided by a video of a ty...
asked by 08.09.2017 / 03:24
0
answers

Problem in Unity to share on Facebook

I am developing a game in Unity and I have tried to share the game on Facebook, the idea is to upload it on Facebook as a game for Facebook, from the Facebook documentation take the following code: FB.ShareLink( new Uri("https://developers...
asked by 20.12.2018 / 15:49
0
answers

The current type, Project.ServiceLayer.Interface.IMenuService, is an interface and can not be constructed. Are you missing a type mapping?

I have the following problem, since I made a branch change in my project, which I run on .net 4.6.1 (I tried already uploading and downloading the version and updating the unity libraries, and even deleting and re-cloning the project), and is th...
asked by 02.01.2019 / 17:03
1
answer

Vertical ladder in 2D game

Let's see I'm designing a 2D game with unity, but I'm looking for a solution to make a method in my main character's script where when entering a collider2D (with a Trigger2D) placed in his vertical stair sprite, he can activate your climb anima...
asked by 02.12.2018 / 16:28
0
answers

Mono.dll caused an Access Violation using Npgsql

Using Npgsql and Unity 5.6.2f1 to connect with PostgreSQL and the following code: public bool OpenDB() { string connectionString = "Host=**;Port=**;Database=**;Username=**;Password=**"; // IDbConnection dbcon; ## CHANGE T...
asked by 03.12.2018 / 15:17
0
answers

because the input of my game does not work

using System.Collections; using System.Collections.Generic; using UnityEngine; public enum MoveDirection { Left, Right, Up, Down } public class InputManager : MonoBehaviour { private GameManager gm; void Awake() {...
asked by 17.11.2018 / 21:31
2
answers

The OnClick event does not appear!

You see, create a script in Unity to get out of the game, but, I had to add it to the OnClick event and when I looked for it I did not find it, does anyone know if something should be activated or add a script? Could you leave it here? I leave y...
asked by 26.10.2018 / 22:00