DevStore technical details: Unity3D editor tips, devstoreunity3d

Source: Internet
Author: User

DevStore technical details: Unity3D editor tips, devstoreunity3d

Abstract:UnityThe engine is well known to developers for its ease of use and ease of understanding, but few people have a comprehensive and meticulous understanding of the functions of the Unity editor, some very practical small functions are often ignored in the daily life of developers, but it does not help greatly improve our work efficiency, count the tips we missed ~

 

1) Lock Inspector-there is a small "Lock" icon above the inspector panel. Click "Lock" to lock the inspector panel to the selected GameObject. It is very effective when you need to set a large number of GameObject parameters (for example, adding a large number of references to a number of groups ).

2) Multiple Inspector-click the "context menu" icon next to the small "Lock" icon, select "Add Tab" from the drop-down menu, and then select "inspector ". Working with the "locking Inspector" function will greatly improve productivity.

3) Search for a specific Type-not only can you quickly Search by name, but you can also use the Type-click the "Search" icon and select "Type" from the drop-down menu ", or, you can use a quicker method: directly type "t: type", such as t: texture, t: material, and so on.

4) insert or delete data in the Inspector Array-it is very convenient to edit the Array in Unity! -- Until one day you plan to delete or insert data from the middle ...... This seems to be an impossible task, but it can indeed be done-insert data (copy a data), select the data in the array, and then Ctrl-D (windows) command-D (Mac ). Delete the data in the array: Shift-Delete twice (data is cleared for the first time and data is deleted for the second time ).

5) in the Inspector text editing box, line feed-Mac only requires Option-Return. In Windows, this function is "omitted". Generally, you need to use another text editor (such as NotePad) copy the text with a line break. This is really a little lame, so someone wrote an Editor Script to implement this function: you only need to create an Editor folder in your project directory, then run the script (CreateNewLine. cs.

6) Create Prefab quickly-set your GameObject in Hierachy and drag it directly to the Project panel-Prefab instant rendering.

7) edit the size of the basic Collider in Scene View. Select an object with Collider and press and hold the Shift key, after the green small square appears, you can perform deformation operations (the mouse must accurately point the green square and drag and drop it after it turns yellow ).Note: This function cannot be used if the Collider attribute panel in Inspector is not expanded.

8) set a custom icon for the object-select the GameObject icon in inspector. You can select the icon type, color, or even create a custom icon in the drop-down list. You can also add a script icon-select a script in the Project panel and click its icon in inspector. The icon of this script will be automatically appended to all objects bound to this script. If you are doing something like a path, this function will be extremely practical.

9) Align to the vertex, align to Collider-to align to the vertex: Hold down "V", click the target vertex, and drag the mouse to the vertex you want to align in another mesh. Align to Collider: press Shift when you use the Translate Tool.

10) Editor programming-if Unity Editor lacks the functions you need, you can write it by yourself. It is very easy to expand the Editor by using scripts, and the effect is remarkable. For example, PlayModePersist can save any changes you make to the GameObject in PlayMode.

Note: The above tips are only the result of the developer's wisdom. If you have any copyright issues,EditorNot responsible ~


How to use the extended UI Editor (BitGUI Toolbox) in Unity3D? Who can provide a tutorial?

No

Music: unity3d terrain editor how to cancel the operation, brush up with the terrain pen after the terrain can not ctrl + z why shift Needless to say

I tried to use Ctrl + Z to undo it. What version do you use?
 

Related Article

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.