In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to add UnityAPI code hints for Emmylua". Friends who are interested may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "Emmylua how to add UnityAPI code tips" bar!
Recently transferred from the previous cocos creator front-end to unity front-end, just contacted the company's project. Some problems encountered in the construction of the environment are recorded here.
The project I received was not complicated. The Lua developer used a series of IDEA editors (their family's GoLand was also used in previous golang), and the plug-in used Emmylua. On the use of Emmylua experience, I will write another article to record, temporarily do not understand too deep is not suitable to introduce at this time. When the chatter is over, let's get to the top of the question.
I will not repeat the installation of the EmmyLua plug-in. After all, the plug-in installation of the IDEA home directly searches the and installation and ok it. Here I will mainly talk about the code hints of UnityAPI. After all, for novice players like me, scripting languages like lua want to pass without strong typing. To see which methods of types are uncomfortable and not conducive to the learning process. So I went to the Internet to find a way to add UnityAPI prompts, but found the following ways to add:
Screenshot blog source address
However, I found that there is no Lua Net Library option in the current editor.
Later, I added it to the official group from EmmyLua's github project, and found the answer in the group.
First of all, you need to add an EmmyLua-Unity plug-in to the IDEA editor. This plug-in is not available in the official plug-in library. Go to the group or this address to download the plug-in, and then install it to the editor by installing the plug-in locally (just select the zip package without decompression):
After installation, clicking ok will prompt you to restart the editor, restart it, and then when you add it, you will see the option Lua Net Library.
However, it is found that this method of adding dll in the group is marked as obsolete and provides a new way to add UnityAPI prompts:
After installing the above IDEA plug-in, put an EmmyLuaService.cs file (extraction code: wgi9) under the Assets/Editor folder of the Unity project. If you don't have it, you can create an Editor folder by yourself. After that, there will be an extra EmmyLua menu item on the menu bar of the Unity editor. Select Enable.
Then you will find that there is already a code hint for UnityAPI in the IDEA editor. Since this method is equivalent to launching a server in the Unity editor, you need to be prompted when the Unity editor is open, but it's okay to consider that the Unity editor is permanently open in normal development.
At this point, I believe you have a deeper understanding of "Emmylua how to add UnityAPI code tips", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.