Attention problems in the use of namespace in Unity3d

Source: Internet
Author: User

Recent refactoring in the game of the same logic, but also to add new functional logic, because of the various naming problems, using namespace to control.
However, the use of namespace in the Unity3d engine is different from the general one, which needs to be noted:
The script to be a component component cannot be placed under namespace because the script name of the component is the same as the class name (that is, Xxxx.cs is consistent with xxxx:monobehaviour), and if the latter is placed under namespace, Unity3d at compile time, will not be able to identify the cause of the warning, while running on the PC may not error, but sent to the phone runtime (APK) will be a problem.

Attention problems in the use of namespace in Unity3d

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.