InfoBoxData infoBox; // Creating an InfoBoxData object infoBox.SetValueUnit("Temperature", "25°C"); // Setting the value and unit of the temperature item
InfoBoxData infoBox; // Creating an InfoBoxData object infoBox.SetValueUnit("Speed", "60 mph"); // Setting the value and unit of the speed itemIn this example, we create an InfoBoxData object named infoBox and set the value and unit of the "Speed" item to "60 mph". This function is a part of a package library, but without further information, it is not possible to determine which library it belongs to.