mirror of
https://github.com/ConjureETS/EscapeTheRoom.git
synced 2026-03-24 09:10:57 +00:00
16 lines
370 B
C#
16 lines
370 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class BoundsTest : MonoBehaviour
|
|
{
|
|
void Start()
|
|
{
|
|
Mesh mesh = GetComponent<MeshFilter>().mesh;
|
|
Vector3[] vertices = mesh.vertices;
|
|
Vector2[] uvs = new Vector2[vertices.Length];
|
|
Bounds bounds = mesh.bounds;
|
|
|
|
print(bounds.size.x);
|
|
print(bounds.size.y);
|
|
}
|
|
} |