Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

Bounds.Bounds

Cambiar al Manual
public Bounds(Vector3 center, Vector3 size);

Parámetros

Descripción

Creates new Bounds with a given center and total size. Bound extents will be half the given size.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Bounds bounds = new Bounds(Vector3.zero, new Vector3(1, 2, 1)); }