Get information about the object pointed to by the operation||doc135630

September 20, 2022

Format

 Blockman:getHitInfo()
  • The class to which the function belongs:Blockman

Description

Get information about the object pointed to by the operation


Value Returned

type Description
table When the player operates (click/touch), the information of the object (item/entity/block) pointed by the cursor


Code Samples

local bm = Blockman.Instance()
local hitInfo = bm:getHitInfo()
print(hitInfo)