1. When using arrays or ArrayList objects, you should pay attention to1 length=myarray.length; 2 3 for (int i=0; i) 4 5 { 6 7 } Avoid[CSharp]View Plaincopy 1 for (int i=0; i) {4} 2, if it is not necessary to process each frame, it can
1. When using an array or arraylist object, note that
[CSHARP]View plaincopy
Length = myarray. length;
For (INT I = 0; I
{
}
Avoid
[CSHARP]View plaincopy
For (INT I = 0; I
{
}
2. If you do not need to process each frame, you
1. When using an array or ArrayList object, note that
length=myArray.Length;for(int i=0;i
Avoid
for(int i=0;i
2. If you do not need to process each frame, you can process it every few frames.
void Update(){ if(Time.frameCount%6==0) { DoSomething();
Original address:Http://unity.jb51.net/chengxukaifa/kaifajingyan/1233.html1. When using arrays or ArrayList objects, you should pay attention to
Length=myarray.length;
for (int i=0;i
{
}
Avoid
for
1.PC platform Words keep the number of vertices displayed in the scene less than 200k~3m, and mobile devices less than 10W, all depending on your target GPU and CPU. 2. If you are using U3d's own shader, select the mobile or unlit directory in the
Origin: Feel good when playing Codeblocks's own Tetris, however there is a time limit. So I want to write one more. Program effect: Main content: There is a board array in the program, there are parts to be displayed, there are no parts to display,
Unity3D project development popular essential plug-ins, unity3d Project Development2D ToolKit
2D Toolkit is a set of tools that seamlessly integrate with the Unity environment, providing efficient 2D Genie and text systems.
Official Address: https://
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.