M_Skeleton:NearestBone(vec)

Version added: before 9.5

Returns the closest bone to a 2D vector position

ArgumentTypeDescriptionDefaultVer
vecVector2A 2D position in the bone layer< 9.5

Return type (int32): bone identifier

Returns the closest bone to a 2D vector position.
String "NearestBone" is found in the following scripts:

Modified transform bone tool (by A.Evseeva)