[A] Tessellattion

This commit is contained in:
2024-07-19 21:39:29 +08:00
parent 56a1e3da98
commit 3758ba0a99
17 changed files with 1785 additions and 109 deletions

View File

@@ -27,7 +27,7 @@ public class FPS : MonoBehaviour
void Start()
{
Application.targetFrameRate = 0;
Application.targetFrameRate = 60;
}
void OnGUI()
@@ -47,4 +47,15 @@ public class FPS : MonoBehaviour
Rect rect = new Rect(20, h * 0.4f, w * 0.5f, h * 2 / 100);
GUI.Label(rect, text, fpsStyle);
}
public GameObject[] objs;
[ContextMenu("Switch")]
void Switch()
{
foreach (var obj in objs)
{
obj.SetActive(!obj.activeSelf);
}
}
}