fix: Shose描边加粗到0.06+collider半径扩到1.0

This commit is contained in:
yangbear
2026-07-05 21:26:47 +08:00
parent fa5c096b6e
commit 4f008e14a9
@@ -16,7 +16,7 @@ public class ShoseClickHandler : MonoBehaviour
if (GetComponent<Collider>() == null)
{
var sc = gameObject.AddComponent<SphereCollider>();
sc.radius = 0.5f;
sc.radius = 1.0f;
sc.isTrigger = false;
}
CreateOutlineMesh();
@@ -36,7 +36,7 @@ public class ShoseClickHandler : MonoBehaviour
var mat = new Material(shader);
mat.SetColor("_OutlineColor", new Color(0.2f, 0.5f, 1f, 1f));
mat.SetColor("_MainColor", new Color(0, 0, 0, 0));
mat.SetFloat("_OutlineWidth", 0.03f);
mat.SetFloat("_OutlineWidth", 0.06f);
var go = new GameObject("Outline");
go.transform.SetParent(transform, false);
go.AddComponent<MeshFilter>().sharedMesh = mf.sharedMesh;