Data interaction method between Lua language and Unity
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- 厦门极致互动网络技术股份有限公司
- Publication Date
- 2021-03-30
Smart Images

Figure 1
Abstract
Description
technical field
[0001] The invention relates to the field of computer technology, in particular to a data interaction method between Lua language and Unity. Background technique
[0002] Unity engine game hot update is an important technology for online games on mobile platforms. The existing Unity game engine provides the C# language to interact with Unity objects: C# declares variables, drags and binds or edits objects under the Unity editor. Unlike the C# language natively supported by the Unity engine, Unity does not provide variable binding support for the Lua language, including Lua variable identification, editing, storage, and use processes. In game development, Lua language interacts with Unity objects and components. You can only call the C# interface "Find" (query) and "GetComponent" (get object) provided by Unity to obtain objects or components, which makes the development process cumbersome, and game performance will also be affected during frequent object calls...