Category : unity3d

I am new to Unity and VR. I am trying to create a very basic VR application using Unity and my Android phone via Google Cardboard. I followed the steps given here, https://developers.google.com/cardboard/develop/unity/quickstart, https://docs.unity3d.com/Manual/android-sdksetup.html and installed android studio sdk on my laptop. Here is my scene, hierarchy, and build settings. No error while building. The ..

Read more

My Game made with unity crashes every time if there is not internet acces on the android phone.And reason for crashings are Google AdMob ads. This is started to happening after i changed compilation mode from IL2CPP to mono,then reversed it.Now is again on IL2CPP but still got this ERROR. Version before that has not ..

Read more

I wrapped ExoPlayer within an Android plugin and used it inside a unity project. Until now everything is working fine, this is my code Unity Script public class WrapperExo : MonoBehaviour{ private AndroidJavaObject javaClass; // Start is called before the first frame update void Start() { AndroidJavaClass playerClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); AndroidJavaObject activity = playerClass.GetStatic<AndroidJavaObject>("currentActivity"); ..

Read more

void Start() { // Появление Ассистента Assistant = Instantiate(Assistant, ARCamera.transform.position + new Vector3(0f, 1f, 0f), ARCamera.transform.rotation); } void Update() { // Проверка на дистанцию if (CheckDist() >= 0.1f) { MoveObjToPos(); } // Поворот Ассистента в сторону пользователя Assistant.transform.LookAt(ARCamera.transform); } public float CheckDist() { float dist = Vector3.Distance(Assistant.transform.position, AssistantPosition.transform.position); return dist; } private void MoveObjToPos() { ..

Read more

I need to show the status and navegation bar without losing space on the game screen, and add a Gray color only in status bar. I have tried this code to show the status Bar: private static void setStatusBarValueInThread() { using (var unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) { using (var activity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity")) { using (var ..

Read more