更新obi到7.1

This commit is contained in:
Bob.Song
2025-11-03 11:53:45 +08:00
parent d12e1bc495
commit 7cf7f545bc
1161 changed files with 158924 additions and 37802 deletions

View File

@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Obi.Samples
{
[RequireComponent(typeof(LineRenderer))]
public class RenderLineBetweenTransforms : MonoBehaviour
{
public Transform transformA;
public Transform transformB;
LineRenderer line;
void Awake()
{
line = GetComponent<LineRenderer>();
}
void Update()
{
if (transformA != null && transformB != null)
line.SetPositions(new Vector3[] { transformA.position, transformB.position });
}
}
}