get_id


Description:

public int32 get_id ()

The ID can be used to retrieve the unit with [func@Unit.

get_by_id].

Note that this ID will be stable within a single session of GIMP, but you should not expect this ID to stay the same across multiple runs.

Parameters:

this

The unit you want to know the integer ID of.

Returns:

The unit's ID.