Version: 5.3 (switch to 5.4b)
ЯзыкEnglish
  • C#
  • JS

Язык программирования

Выберите подходящий для вас язык программирования. Все примеры кода будут представлены на выбранном языке.

Bounds.Bounds

Руководство
public Bounds(Vector3 center, Vector3 size);

Параметры

Описание

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)); }