![]() To transfer objects containing multiple parameters, please consider converting them to the JSON format for transfer and parsing them at different levels. This feature is still in the experimental stage, only string transfers are supported.The following points need to be noted when using them: The only two interfaces at the scripting level are sendToNative and onNative, which are transfer and receive native layer parameters, respectively. ![]() ![]() To use the previous way, please review the Using JavaScript to Call Java documentation. Note: both ways are working fine, developers can choose to use them according to their actual needs. This is a kind of channel, or a bridge, named JsbBridge before introducing other scripting systems, meaning that it serves as a bridge to communicate between script and native APP via the JSB binding. Prior to v3.4.0, the reflection mechanism in Using JavaScript to Call Java static methods, not only needed to strictly declare package names and function signatures, but also needed to strictly check the number of parameters to ensure proper operation, which was a complicated step.Īdditionally provided in v3.4.0 is another experimental method for simplifying calls from the scripting layer to the native layer. Native engine memory leak detection systemĪ Simpler Way to Call Java Methods with JavaScript (Experimental) Background Resource Management Considerations - meta files Build a Scene Image Using the Scene PanelĬustom Materials for 2D Rendering ObjectsĭragonBones ArmatureDisplay Component ReferenceĬreate a List of Dynamically Generated ContentĬreating Animation Components and Animation Clips
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |