getareaconnections - eisclimber/ExPresS-XR GitHub Wiki

Tile.GetAreaConnections(Vector2Int,bool)

Method in Tile

Summary

Returns an array containing true if there is a connection from dir to the direction. The order of entries is: [center, up, down, left, right].

public bool[] GetAreaConnections(Vector2Int dir, bool considerSelfConnected = true)

Parameters

Name Description
UnityEngine.Vector2Int dir Dir to check.
bool considerSelfConnected If connections to the same direction are considered connected.

Returns

Array of bools if a connection area exists.

⚠️ **GitHub.com Fallback** ⚠️