Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GridLayout.WorldToCell

public method WorldToCell(worldPosition: Vector3): Vector3Int;

Parameters

worldPosition World Position to convert.

Returns

Vector3Int Cell position of the world position.

Description

Converts a world position to cell position.

no example available in JavaScript

Did you find this page useful? Please give it a rating: