Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetBoundsLocal

Returns the local bounds for a cell at the location.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.GridModule

GetBoundsLocal(Vector3Int)

Returns the local bounds for a cell at the location.
public Bounds GetBoundsLocal(Vector3Int cellPosition)

Parameters

cellPosition

Location of the cell.

Returns

Type

Description

BoundsLocal bounds of cell at the location.

GetBoundsLocal(Vector3, Vector3)

Returns the local bounds for the groups of cells at the location.
public Bounds GetBoundsLocal(Vector3 origin, Vector3 size)

Parameters

origin

Origin of the group of cells.

Size of the group of cells.

Returns

Type

Description

BoundsLocal bounds of the group of cells at the location.