MohoView:PickBone(where, clickVec, layer, exact, pickWidth, ignoreBone)

Version added: before 9.5

Picks a bone near the given pixel location

ArgumentTypeDescriptionDefaultVersion added
whereLM_PointPixel location on the screenbefore 9.5
clickVecLM_Vector2Vector location of the clickbefore 9.5
layerMohoLayerThe bone layer you wish to pick frombefore 9.5
exactboolTrue if only exact picks are accepted, false if the closest bone can be clicked even if not exactbefore 9.5
pickWidthint323before 9.5
ignoreBoneint32Added in version 12-112.0

Return type (int32): id of the picked bone

Picks a bone near the given pixel location.