Questions tagged [android-unity-plugin]

65 questions
7
votes
1 answer

Images are not accessible using the context.getClassLoader.getResaurceAsStream from android jar in Unity plugin

I am trying to create an SDK in which i have few images and all the classes in .jar file. I have already created the unity plugin and bridge class for android SDK. Functionality is working all fine in SDK. But i am facing the below problem, I am…
Hardik Chauhan
  • 2,750
  • 15
  • 30
5
votes
1 answer

SurfaceTexture in Android plugin doesn't work in Unity

I can't get the texture tied to a SurfaceTexture to display in Unity. Update 4: Based on the pipeline in update 1 (surface->external texture via surface texture -> fbo -> texture 2d) I know the SurfaceTexture isn't properly converting its surface to…
5
votes
1 answer

Unity3d Application crashes when use Android plugin

I am following this tutorial to make a step counter and it works well as an android project but when I make the android project a library and want to use it in unity3d, it is crashing and giving me an error class not found: exception My unity code…
4
votes
1 answer

Unity Error: Unable to convert classes into dex format

I have created an Android Unity plugin (.aar file) which provides some custom positioning data to my Unity game. In my Unity script, I use, var x = customClass.CallStatic("getHeadX"); In order to get some location data. This method is called…
Kamran Bigdely
  • 7,946
  • 18
  • 66
  • 86
4
votes
1 answer

Android ClassNotFoundException: Didn't find class on path dexpath unity plugin

I am creating a unity plugin in android studio. However I am stuck on this particular exception. The problem does not occur when I compile and run the project as an application and happens only when it is exported as a library to unity. Here is the…
B0rn2C0de
  • 585
  • 1
  • 7
  • 22
4
votes
3 answers

Gradle dependencies on Unity

I recently created an Android Studio project using estimote beacons. This requires that the build.gradle be modified so that it can access the estimote sdk. I created the project and it works great. I also created a simple android plugin to show a…
3
votes
1 answer

Unity Android Plugin for GCM is Unable to Start Service Intent on Receive

I am currently working on a plugin for unity that will make use of GCM for push notifications and cannot seem to resolve this issue. I followed the steps on the Google Developers site and managed to get the app to register and receive messages from…
3
votes
1 answer

Android Native TextField with input type password is not working properly when making plugin for unity

I am working on a unity plugin but my Edit text field with input type password is not working properly when I input the numeric values, it does not allow me to input. for example when I am entering a password it would allow me to enter alphabets and…
2
votes
1 answer

Sign In Error (Code 16) while using Google Play Games Plugin SignIn in Unity

I am first time developer using Unity with Google Play Games Plugin including SignIn only. I went along the Unity Plugin Guide. Extracted error via logcat: User cancelled sign in attempt in the previous attempt. Triggering callback with…
2
votes
2 answers

Unity's Google In-App Review plugin error: java.lang.ClassNotFoundException: com.google.android.play.core.review.ReviewManagerFactory

I'm trying to integrate Google's In-app Review feature into my Unity application and getting the following runtime error message on logcat console. Anyone knows the solution to this problem? AndroidJavaException: java.lang.ClassNotFoundException:…
Eric
  • 1,685
  • 1
  • 17
  • 32
2
votes
2 answers

What is defference between "AndroidJNI.FindClass" And "AndroidJavaClass" in Unity3D

I Just started to Learn about How to Connect my SDK Developed in Android to My Unity3D Project. But JNI and Unity classes like AndroidJNI still is very vague to me. For example, see bellow code that uses AndroidJNI.FindClass: (From This Post) …
2
votes
1 answer

How to access target texture for rendering from native world in Unity (VR)?

I wanna render VR from a native plugin. Is this possible? So, far, what I have is this: void OnRenderObject() { GL.IssuePluginEvent(getRenderCallback(), 1);​ }​ This is calling my native plugin and rendering something, but it makes this mess…
2
votes
0 answers

Unity with google-play-services Social.localUser.Authenticate crash

im using unity plugin play-games-plugin-for-unity and natcam i have to delete google-play-services.jar from natcam.aar to build my project cause i was unable to convert classes into dex format. after…
1
vote
0 answers

OnPointerEnter And OnPointerExit Not Working In Unity

I'm trying to make an Android FPS Game in Unity; It was good until I get to the Looking Input code. Here what I tried: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class…
1
vote
1 answer

How Call checkSelfPermission in a native java plugin for UNITY

i have a projet in Unity 3d who use a jave plugin. In this plugin i need to check if user have already enable the permission. But everytime i call checkSelfPermission the app crash and i dont know why. Java plugin(module) public class…
1
2 3 4 5