新增SensorToolkit

This commit is contained in:
2026-05-23 08:48:48 +08:00
parent 9369f512d1
commit 81c326af53
557 changed files with 186698 additions and 137 deletions

View File

@@ -0,0 +1,22 @@
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Micosmo.SensorToolkit {
[AddComponentMenu("Sensors/LOS Targets")]
[HelpURL("https://micosmo.com/sensortoolkit2/docs/manual/sensors/los#test-points")]
public class LOSTargets : MonoBehaviour {
public List<Transform> Targets;
protected static readonly Color GizmoColor = new Color(51 / 255f, 255 / 255f, 255 / 255f);
public virtual void OnDrawGizmosSelected() {
if (Targets == null) return;
Gizmos.color = GizmoColor;
foreach (Transform t in Targets) {
if (t == null) return;
Gizmos.DrawCube(t.position, Vector3.one * 0.1f);
}
}
}
}