修复了选曲的问题 优化了ui

This commit is contained in:
2026-01-08 21:04:36 +08:00
parent e7f4ac72d5
commit 2738089af1
414 changed files with 60357 additions and 5279 deletions
@@ -0,0 +1,27 @@
using UnityEngine;
public class loadtopandbottomPrefab: MonoBehaviour
{
[Header("father obj")]
public GameObject top_and_bottom_Panel;
public GameObject gameobject_to_Instantiate_below;
void Start()
{
if (top_and_bottom_Panel != null && gameobject_to_Instantiate_below != null)
{
GameObject instantiated = Instantiate(top_and_bottom_Panel, gameobject_to_Instantiate_below.transform);
Canvas canvas = instantiated.GetComponent<Canvas>();
if (canvas != null)
{
Camera cam = Camera.main;
if (cam == null)
{
cam = FindObjectOfType<Camera>();
}
canvas.worldCamera = cam;
cam = null;
}
}
}
}