![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | edgyneer |
I’ve been exploring the documentation for a while now, and some of the commands use something called “id”.
Here are some examples:
- void add_point(id: int, position: Vector3, weight_scale: float = 1.0)
- void remove_point(id: int)
- void set_point_disabled(id: int, disabled: bool = true)
What exactly is “id”? I tried to use Vector2() coordinates, but it wanted an integer value instead of Vector(). Is it possible to retrieve the “id” value of a tile, and if it is how do I return it?
Thanks in advance.
id
is your unique identifier for the tile. gdquest has an example here that may be useful: Pathfinding and path drawing · GDQuest
spaceyjase | 2023-06-09 14:24