Cita de: hammer date=1475106935Me refiero a mCamera.Stop() antes de hacer el Application.LoadLevel(), prueba a ver.
Pues parece que puede ser la solución. Es un poco raro pero parece que funciona. Voy a probarlo en varios dispositivos y os cuento.
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúCita de: hammer date=1475106935Me refiero a mCamera.Stop() antes de hacer el Application.LoadLevel(), prueba a ver.
Cita de: Braltor date=1475114388multiples instancias con ese script? has probado en otro aparato? mucho consumo de memoria y crear la webcamtexture sobrepasa el limite del móvil?
Cita de: pioj date=1475088223Por favor, no repitas esta consulta en otros foros, o la borraré. Sigue las normas.
Cita de: hammer date=1475084234Pregunta tonta, le haces el Stop() antes de cambiar de escena??
Cita de: iRobb date=1475087304pero donde se inicializa la cámara? aparte cuando dices que funciona bien en el editor es a través de webcam en el pc claro.
using UnityEngine;
using System.Collections;
public class CameraController : MonoBehaviour
{
public WebCamTexture mCamera;
public GameObject plane;
void Start ()
{
plane = GameObject.FindWithTag ("PlayerCam");
mCamera = new WebCamTexture ();
plane.GetComponent<Renderer>().material.mainTexture = mCamera;
mCamera.Play ();
}
}
using UnityEngine;
using System.Collections;
public class CameraController : MonoBehaviour
{
public WebCamTexture mCamera;
public GameObject plane;
void Start ()
{
plane = GameObject.FindWithTag ("PlayerCam");
mCamera = new WebCamTexture ();
plane.GetComponent<Renderer>().material.mainTexture = mCamera;
mCamera.Play ();
}
}
09-28 14:04:24.343: A/libc(31857): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x9c in tid 31879 (UnityMain)
09-28 14:04:24.486: W/ActivityManager(847): Force finishing activity 1 com.asm.NETPOINTBOA/com.unity3d.player.UnityPlayerNativeActivity
09-28 14:04:24.575: W/InputDispatcher(847): channel '35106e3 com.asm.NETPOINTBOA/com.unity3d.player.UnityPlayerNativeActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
09-28 14:04:24.575: E/InputDispatcher(847): channel '35106e3 com.asm.NETPOINTBOA/com.unity3d.player.UnityPlayerNativeActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
09-28 14:04:24.578: I/WindowState(847): WIN DEATH: Window{35106e3 u0 com.asm.NETPOINTBOA/com.unity3d.player.UnityPlayerNativeActivity}
09-28 14:04:24.579: W/InputDispatcher(847): Attempted to unregister already unregistered input channel '35106e3 com.asm.NETPOINTBOA/com.unity3d.player.UnityPlayerNativeActivity (server)'
using UnityEngine;
using System.Collections;
public class SpawnItems : MonoBehaviour {
public Transform[] SpawnPoints;
public GameObject[] Objectos;
void Start ()
{
int spawnindex = Random.Range (, SpawnPoints.Length);
int objectindex = Random.Range (, Objectos.Length);
Instantiate (Objectos [objectindex], SpawnPoints [spawnindex].position, SpawnPoints [spawnindex].rotation);
}
}
using UnityEngine;
using System.Collections;
public class CargaPantallaInicio : MonoBehaviour {
IEnumerator Start () {
yield return new WaitForSeconds(4f);
Application.LoadLevel("Menu");
}
}