By SARA
on Wed, 06/20/2012 - 17:06
I have created a project for Android and started out using QCAR without Unity but decided in a later stage of the project to start using Unity. So what I did was to follow the instructions for creating a QCAR Unity project and also followed the instructions on the Unity homepage for integrating Unity to Eclipse.
I seem to have problems loading the created scenes into the application that I have created. What I have understood is that the Unity "blank view" is a blue screen (not a error page) that has nothing on it, which I get when starting the application. I used the following code to start the Unity Player. The code is located in myproject\src and the scenes are located in myproject\assets\Scens (have also tried without the Scens folder).
[CODE]import android.os.Bundle;
import com.unity3d.player.UnityPlayerActivity;
public class UnityPlay extends UnityPlayerActivity{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
}[/CODE]
The Unity project can be built to the phone and run from there and the scene works with no problem. So the problem seems to be loading the levels, so how do I decide what level to load when starting Unity from my Android application and how do I get it to start?
A question about the archtecture of the QCAR library:
When loading the QCAR library, a myproject/assets/Plugin/Android folder is created. In that folder a AndroidManifest is located with all libraries for QCAR. I do still have a AndroidManifest in my myproject folder and what is the purpose of the AndroidManifest in the plugin folder? Do I really need two AndroidManifest and could the problem be related to this?
The entire QCAR library is imported into the assets folder, is this correct location for it to be located?
EDIT: Where should my java code (android application code) be located for Unity projects?
Re: Unity-Android: Starting with Blue Screen
Re: Unity-Android: Starting with Blue Screen
Re: Unity-Android: Starting with Blue Screen
Re: Unity-Android: Starting with Blue Screen
Re: Unity-Android: Starting with Blue Screen
Re: Unity-Android: Starting with Blue Screen
Re: Unity-Android: Starting with Blue Screen