Editor extension nine-Implement Unity menu commands in code

Source: Internet
Author: User
Describe

Today, I wrote a tool for fine art, and through some checks, I picked out some problematic objects and let one of them be selected.

Easy to change the direction of art. There is a problem in the middle, there are too many objects in question, click the tool, you need to press F to

The selected object is placed in the field of view. So I thought of a way to automatically invoke unity's menu while the object is selected

Command "Frame Selected", looking for a long time, asked a lot of people, finally found the answer, in this record, convenient for everyone to use.

Editorapplication.executemenuitem ("edit/frame Selected");
Summarize:

Use this sentence to implement all commands under unity.

As TA, the greatest value is to make the art of the province one step.

Editor extension nine-Implement Unity menu commands in code

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.