Item2D_GetId - MalisPierre/ModularGame GitHub Wiki

string Item2D.GetId()


Description:

GetId return the Id of the UI Item.


Parameters:

  • Void

Returns:

  • String: The Id of the UI Item.

Code Example:

function DisplayId()
     MyPanel = Framework.UserInterface_2D.FindPanel("MyPanelId")
     MyPanelId = MyPanel.GetId()
     Framework.IDebug("Panel id = {" .. MyPanelId .. "}")
end