This commit is contained in:
CortexCore
2024-11-13 17:47:45 +08:00
parent c4af12acd7
commit 416e3322db
208 changed files with 2591757 additions and 1497 deletions

View File

@@ -0,0 +1,33 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
using NGS.AdvancedCullingSystem.Static;
namespace NGS.AdvancedCullingSystem.Tutorial
{
public class DisabledTargetGizmo : MonoBehaviour
{
private CullingTarget _target;
private void Awake()
{
_target = GetComponent<CullingTarget>();
if (_target == null)
enabled = false;
}
private void OnDrawGizmos()
{
if (_target == null)
return;
if (_target.enabled)
return;
Gizmos.color = Color.red;
Gizmos.DrawWireCube(_target.Bounds.center, _target.Bounds.size);
}
}
}