Questions tagged as 'unity'

0
answers

pass an array of c # to c ++

I am using native code in c #. I'm trying to pass an array of c # to c ++ using Pinvoke. Once in c ++, I want to fill that array that I passed as a parameter with the values of a cv :: Mat. The problem is that I'm using the copy function and I d...
asked by 29.08.2017 / 10:50
1
answer

Sqlite in Unity for Android

I am developing a .APK in Unity, where I have a BD in SQLite . When doing tests within the Unity environment everything works perfectly, but when exporting it to .APK and testing it on my phone, after executing 2 queries in a row...
asked by 31.08.2018 / 12:51
0
answers

unity: HTTP PUT problems

I'm new to unity but I managed to do the http get, post, delete methods. My problem occurs in the PUT, I get the call right to the server, however it does not do anything, and changes everything to null, I suppose it is an error in the variable...
asked by 25.12.2017 / 17:10
3
answers

C # deserializar XML to read and collect data

I have an application in Unity and I have a class where I assign some buttons a text. I want the button texts to be imported from an XML file. I have done this to read the XML but I do not know how to get the data and take it to the other class....
asked by 29.03.2017 / 17:29
2
answers

Avoid screen lock on Android and VR

I am programming a VR apk with Unity but the following problem arises. Being a VR application, I do not have any contact with the touch screen of my mobile phone, so after 10 seconds the screen dims and 5 seconds later it crashes. I would...
asked by 26.07.2017 / 12:53
1
answer

Unity does not change the scenes

In my Unity project I have these two scenes: And I had this code to change the scene with a trigger: void OnTriggerEnter2D(Collider2D other) { //DETECTA TRIGGER PARA ENTRAR A CASA if(other.gameObject.name.Equals("casa")){...
asked by 31.10.2018 / 11:04
1
answer

Why when I try my game on android does not send me to the scenes I want?

I have this code: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class intro : MonoBehaviour { // Use this for initialization void Update () { StartCoroutine ("ret...
asked by 10.12.2017 / 02:55
1
answer

Extract database image

I need to extract images from a database and then show them in unity and when I do the query I try to save the image in an array of bytes but it does not work. Also, the problem is to pass that array to a visible image. <WebGet()>...
asked by 27.04.2017 / 12:43
2
answers

Collect data of a variable C #

Good morning. I have the following code that reads an xml, and collects the data and stores it in a variable. private void leerxml(){ xElement rootnode= xelement.load(@"C:/xml.xml"); foreach (xElement chlid in RootNode.Elements()) {...
asked by 28.03.2017 / 22:54
1
answer

Problem turning character in Unity 2D

I have the following problem when I turn my character in unity with the following function if (direccion < 0 && izq) { transform.rotation = Quaternion.AngleAxis(180, Vector3.up); izq = false; der = tr...
asked by 07.12.2018 / 21:15