Data interaction method between Lua language and Unity
A data interaction and language technology, applied in the field of data interaction, can solve problems such as game performance impact and cumbersome development process, and achieve the effects of simplifying variable declaration and use process, convenient support, and convenient use
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0026] like figure 1 As shown, a data interaction method between Lua language and Unity includes the following steps:
[0027] S1. Define the type of Lua variables: define the type of Lua local variables in a named manner, and convert them into fixed-format Lua codes, and write the Lua codes into C# mounted on the corresponding Unity scene or prefab In the Lua script file on the mediation component;
[0028] For example: for the Lua variable "_goTest" (execution test), when it is defined as Unity's GameObject (game object) type, the Lua code definition is declared as:
[0029] Comment code: ---@typeGameObject@_goTest;
[0030] Variable declaration: local_goTest=bind._goTest;
[0031] In this way, the Lua variable "_goTest" without any type is artificially defined as the GameObject (game object) type, and the object name of the GameObject type needs to start with "_go" for subsequent identification. Similarly, for common types in Unity such as: Materail (material), Transfor...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com