Unity Editor Console Pro expands click to navigate to external project

Source: Internet
Author: User
Tags lua wrapper sublime text unity 5

Link

http://blog.csdn.net/akof1314/article/details/53232981

Http://forum.china.unity3d.com/thread-26890-1-1.html

Reason

With the C # source form in the Unity project, when you print the log, double-click the log line information in the Console window to automatically navigate to the number of files and rows that Visual Studio is located in.

However, you cannot quickly locate the number of files and rows that are open by using the Unity project in the form of a DLL.

Solve

By using a third-party plug-in Editor Console Pro to expand its functionality and to determine when to double-click the log line information, an external project is opened to locate the file when it is in a non-Unity project.

Extended Configuration Interface:

C # files

An external C # DLL project, opened with Visual Studio, needs to be installed Microsoft Visual Studio Tools for Unity before a location file message can be sent.

Since Unity 5.2 has been integrated with this plugin, it is possible to send location-file messages as long as the unity-loaded one is reflected SyntaxTree.VisualStudio.Unity.Bridge.dll .

However, you first have to *.csproj add a configuration item to the Code engineering file:

<ProjectTypeGuids>{E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
    • 1

Added below the first <PropertyGroup> node. This allows VSTU message commands to be sent over UDP.

Note that adding this configuration item may cause the project's Properties window to fail to open.

When used, in the configuration interface, configure the path of the external DLL engineering solution. When you double-click on the log line information in the Console Pro 3 window, you will automatically open the locate to external DLL project.

Lua file

Embed the LUA project and print the logs in a LUA script in the following format:

15:7:2.333-0: [F:/Svn/Resource/Assets/Lua/tolua.lua:10]:msginfo
    • 1

Then you can use the settings to specify double-click the log line information, open the file with Zerobrane Studio, or open the file with Sublime Text.

Ignore custom log Classes

The log wrapper class encapsulates Debug.Log , when the log is printed, at the top of the stack is the log wrapper class information, inconvenient to locate the upper layer of the call location.

Plug-in Editor Console Pro support configuration ignores custom log classes displayed on the stack. In the configuration interface, the Ignore page, add a Ignore stack entries record, the class name is filled in the wrapper class name, as follows:

After the application, look at the log, you can see clearly, as follows:

Download

Original Redefining the Unity Editor console: Editor console Pro [Copy link]
Admin

845

Theme

1484

Post

10,000

Contribution

Administrator

Integral
19165
  • Send Message
accessible by liftlandlordposted in 2017-8-31 08:05:00 | Just look at the author | Just look at the big picture
I want to have a console that can customize the display of various types of output information according to your own needs to better understand the operation of your game. This needs to be met by Editor Console Pro in the mobile development kit. Today, Yangdong, technical director of Unity Platform, explains how editor Console Pro can help you save time on project commissioning and improve development efficiency. Plus, subscribe to Unity Plus and unity Pro for free to get Unity's four selected developer kit for developers, mobile development, 2D development, VR development, and art design.

Editor Console Pro Introduction

<ignore_js_op>

Unity's built-in console window (console) is an important development aid, and all log and error messages will be displayed here. You can also output information directly to the console window by adding a print () or Debug.Log () method call in your code. is the error message that people usually see when the code goes wrong:

<ignore_js_op>

Clicking on the error message will open the Code Editor and highlight the code snippet in the editor with the error. Although unity comes with a console that can already meet some common needs, combining some advanced features can be more useful for debugging projects, such as displaying code directly in the console and highlighting it.

Is the same error message as the output in the Editor Console Pro window looks like:

<ignore_js_op>

With this simple example, comparing the two above, one important difference is that in Editor Console Pro, the source code of the error is displayed directly in the window, at a glance, to make it easy for developers to locate the error location directly.

Editor Console Pro Main Features

Keyword search:

If the console information is not too much, you can scroll the mouse wheel to see all the content. However, once the console appears like that dozens of messages, unity comes with a console that is inadequate, and the search function is important. Editor Console Pro provides a powerful keyword search feature that allows you to easily view the corresponding log according to your keywords.

<ignore_js_op>


A rich feature configuration interface

You can open the function setting interface via the Preferences menu:

<ignore_js_op>

The function setting interface is as follows:

<ignore_js_op>

You can set the log information to be traced in the configuration interface, in addition to the output information, warnings, errors, you can also track exceptions, assertions, and a specific variable or method to monitor.


Powerful Filter Display function

Currently Unity's own console supports filtering via logs, warnings and errors three conditions, Editor Console Pro supports creating custom filter groups, and can set color, icon, and switch buttons for each group. Set different types of search criteria for custom filter groups, such as:

<ignore_js_op>

Set different log types for custom filter groups, such as:



Create three custom filter groups to display later on the interface, such as:




Use remote logging to get log and stack information for running games on your device

Follow these steps to have the released package support the remote logging feature:

A) Add an empty gameobject to the scene and add the Consoleproremoteserver component;

b) Build the development build in the build window by ticking the corresponding platform;

c) Ensure that your device and computer are connected to the same network and use the same subnet mask;

d) Open remote Logging:

<ignore_js_op>

e) Click the "Remote on" button to activate the Tele mode, and if everything is set correctly, you will see that the console will start receiving log:

<ignore_js_op>

Conclusion

The Editor Console Pro offers richer functionality options than the console that comes with unity. Developers can customize the display of various types of output information according to their own needs, so as to better understand the operation of their own game, and further improve the efficiency of project development and commissioning. We will also continue to introduce you to the VR development and art design Toolkit in the Unity official Chinese Community (unitychina.cn), please stay tuned.

Unity Editor Console Pro expands click to navigate to external project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.