Item2D_SetId - MalisPierre/ModularGame GitHub Wiki

void Item2D.SetId(string Id)


Description:

SetId set the Id of the UI Item.


Parameters:

  • string Id: The New Id of the item

Returns:

  • Void

Code Example:

function ChangeId()
     MyPanel = Framework.UserInterface_2D.FindPanel("MyPanelId")
     MyPanel.SetId("NewId")
     MyPanel = Framework.UserInterface_2D.FindPanel("NewId")
end