Insanely huge initial commit

This commit is contained in:
2026-02-21 16:40:15 -08:00
parent 208d626100
commit f74c547a13
33825 changed files with 5213498 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using UnityEngine;
namespace LeTai.Asset.TranslucentImage.Demo
{
public class WorldSpaceSetup : MonoBehaviour
{
public Camera sceneCamera;
public Camera uiCamera;
public void Toggle()
{
//In always on top mode, main camera shouldn't render the UI
//Equivalent to toggling the layer "UI" in the inspector
sceneCamera.cullingMask ^= 1 << LayerMask.NameToLayer("UI");
//Instead, another camera that have higher depth should do that.
uiCamera.gameObject.SetActive(!uiCamera.gameObject.activeSelf);
}
}
}