using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GetSphereSize : MonoBehaviour
{
public GameObject sp;
// Start is called before the first frame update
void Start()
{
Vector3 length = sp.GetComponent
print(length);
}
// Update is called once per frame
void Update()
{
}
}
以下内容转载自().bounds.size vs GetComponent
GetComponent
GetComponent



