Example #1
0
 public static IEnumerator GetDynamicArrayIEnumerator(DynamicArray dynamicArray)
 {
     yield return new WaitForSeconds(0.2f);
     Dynamic[]  dynamicInner = new Dynamic[0];
     finalDynamic = dynamicInner;
 }
Example #2
0
        public static Dynamic[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            Dynamic[] dynamic = new Dynamic[0];

            return dynamic;
        }
Example #3
0
 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     yield return new WaitForSeconds(0.2f);
         Dynamic[]  dynamicInner = new Dynamic[0];
         finalDynamic = dynamicInner;
 }
Example #4
0
        public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
        {
            if(javaUnityApplicasaDynamic==null)
                javaUnityApplicasaDynamic = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaDynamic");

                AndroidJavaObject[] bigArray = javaUnityApplicasaDynamic.CallStatic<AndroidJavaObject[]>("ApplicasaDynamicGetArrayWithQuerySync", query.innerQueryJavaObject, (int)queryKind);

            Dynamic[] dynamicInner= null;;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];

                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());
                Dynamic[] dynamictemp = new Dynamic[InnerArray.Length];
                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    dynamictemp[j] = new Dynamic(tempObj.GetRawObject(),tempObj);
                }
                if (dynamicInner == null)
                    dynamicInner = dynamictemp;
                else{
                   Dynamic[] firstOne = dynamicInner;
                    dynamicInner = new Dynamic[firstOne.Length+dynamictemp.Length];
                    firstOne.CopyTo(dynamicInner,0);
                    dynamictemp.CopyTo(dynamicInner,firstOne.Length);
                }
                yield return new WaitForSeconds(0.2f);
            }
            finalDynamic = dynamicInner;
        }
Example #5
0
        public static IEnumerator GetDynamicArrayIEnumerator(DynamicArray dynamicArray)
        {
            Dynamic[] dynamicInner = new Dynamic[dynamicArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(dynamicArray.Array);

            int count = 0;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];
                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());

                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    dynamicInner[count] = new Dynamic(tempObj.GetRawObject(),tempObj);
                    count++;
                }
                yield return new WaitForSeconds(0.2f);
            }
            finalDynamic = dynamicInner;
        }
Example #6
0
 public static Dynamic[] GetDynamicArray(DynamicArray dynamicArray)
 {
     Dynamic[] dynamics = new Dynamic[0];
     return dynamics;
 }
Example #7
0
        public static Dynamic[] GetDynamicArray(DynamicArray dynamicArray)
        {
            Dynamic[] dynamics = new Dynamic[dynamicArray.ArraySize];

            for (int i=0; i < dynamicArray.ArraySize; i++) {

                IntPtr newPtr = Marshal.ReadIntPtr (dynamicArray.Array, i * Marshal.SizeOf(typeof(IntPtr)));
                dynamics[i] = new Dynamic(newPtr);
            }
            return dynamics;
        }
Example #8
0
        public static Dynamic[] GetDynamicArray(DynamicArray dynamicArray)
        {
            Dynamic[] dynamicInner = new Dynamic[dynamicArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(dynamicArray.Array);

            int count = 0;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];
                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());

                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    dynamicInner[count] = new Dynamic(tempObj.GetRawObject(),tempObj);
                    count++;
                }
            }
            return dynamicInner;
        }
Example #9
0
        public static Dynamic[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            Dynamic[] dynamic = new Dynamic[0];

            return(dynamic);
        }
Example #10
0
 public static Dynamic[] GetDynamicArray(DynamicArray dynamicArray)
 {
     Dynamic[] dynamics = new Dynamic[0];
     return(dynamics);
 }