JSBinding + SharpKit / Generate JS Bindings

Classes in JSBindingSettings.classes array will be exported to JavaScript.

There are already many classes (most of them are from UnityEngine.dll) in that array, you have to add your own classes.

 1     public static Type[] classes = new Type[]

 2     {

 3         /*

 4          * Classes to export for demo

 5          * Add classes here to export

 6          */

 7         

 8         typeof(UnityEngine.WheelCollider),

 9         typeof(UnityEngine.PhysicMaterial),

10         typeof(UnityEngine.Collision),

11         typeof(UnityEngine.ControllerColliderHit),

12         typeof(UnityEngine.CharacterController),

13 

14         //....

15     }

 

Click this menu to export those classes:

 

after finished, two parts of code will be generated:

1) C# files in folder Assets/JSBinding/Generated/ (defined by JSBindingSettings.csGeneratedDir variable)

 

2) JavaScript files in folder StreamingAssets/JavaScript/Generated/ (defined by JSBindingSettings.jsGeneratedDir variable)

 

Also, StreamingAssets/JavaScript/GeneratedFiles.javascript file is generated, containing the file name list.

 

back to

JSBinding + SharpKit / Home

你可能感兴趣的:(bind)