10 tips for Unity 3D utility

Source: Internet
Author: User

Unity engine, easy to understand, but few people Unity the function of the editor to do a comprehensive and detailed understanding, some very useful small features in daily use is difficult to find, but they are the productivity of the promotion is not small help.

1) Lock inspector– There is a small "lock" icon above the Inspector Panel, the Inspector panel can be locked on the currently selected Gameobject after the lock is clicked. It is very effective when you need to set a large number of parameters for a gameobject (such as adding a large number of references to an array).

2) Multiple inspector– Click on the "context menu" icon next to the small "lock" icon, select "Add tab" from the drop-down menu and choose "Inspector". Working with the Lock Inspector feature will greatly increase your productivity.

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

4) inserting or deleting data in an array of inspector – editing an array in unity is convenient! -Until one day you plan to delete or insert data from the middle ... This seems like an impossible task, but it can actually be done-inserting data (copying a data), checking the data in the array and then ctrl-d (Windows), command-d (MAC). Delete the data in the middle of the array: Shift-delete two times (the first time the data is emptied and the data is deleted the second time).

5) In Inspector text edit box rumor only need to Option-return, and Windows under this feature is "missing" in general you need to copy it from another text editor (such as Notepad) with text wrapping-This is a bit lame, So someone wrote an editor script to do this: just create an editor folder in your project directory and put the script (CreateNewLine.cs) inside.

6) quickly create prefab– set your gameobject in hierachy and drag it directly to the project panel--prefab instantly!

7) Edit the size of the basic collider in Scene view – Select an object with collider, hold down the SHIFT key, and the green small square will be able to deform once it appears ( Mouse The green block must be accurate, and the zoom can be dragged after it becomes yellow. Note that This feature is not available if the Collider Properties panel is not expanded in inspector.

8) Set the custom icon for the object – Select the Gameobject icon in the inspector, and in the drop-down list you can select the icon type, color, or even create a custom icon. You can also attach an icon to the script--Select the script in the Project panel and click its icon in Inspector. The icon for this script will be automatically appended to all objects that are bound to this script, and this function will be extremely useful if you are doing something like a path point.

9) Align to Vertex, align to collider– to align to vertex: Press and hold "V" and then click on the target vertex, then drag the mouse to the vertex in another mesh that you want to align. Align to Collider: Hold down the SHIFT key while using the Translate tool.

Editor Programming – If Unity Editor lacks the functionality you need, you can write it yourself. It is very easy to extend the editor through scripts, and the effect is very significant. For example, Playmodepersist can save any changes you make to Gameobject under PlayMode.


This article is from the "13233523" blog, please be sure to keep this source http://13243523.blog.51cto.com/13233523/1975635

10 tips for Unity 3D utility

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.