Home > other >  Unity3d call android code the parameters of the problem
Unity3d call android code the parameters of the problem

Time:09-25

As title, I now want to invoke a method in Java code, but it contains the parameters of the enumerated type, seemingly enumeration cannot directly in c #, that should be how to c # enumeration of the enumeration into Java? O great god answer!!!!!

CodePudding user response:

Enumeration is int

CodePudding user response:

reference 1st floor shingoscar response:
enumeration is int
can you elaborate on it, how to pass parameters?

CodePudding user response:

refer to the second floor Z_Y_T_ response:
Quote: refer to 1st floor shingoscar response:

Enumeration is int
can you elaborate on it, how to pass parameters?

How much is the first to find this enumeration values, and then when int transmission line

CodePudding user response:

When the enumeration is below this kind of situation, a method is called

 package com. Innyo. Androidplugin; 

Public enum TryEnum {
Red, green, yellow, blcak

}


A method is called is

 AndroidJavaObject redValue=https://bbs.csdn.net/topics/
New AndroidJavaClass (" com. Innyo. Androidplugin. TryEnum "). The GetStatic (" red ");
  • Related