MediaItem

MediaItem is every item that is used to represent objects, either visual, audible, etc..
Examples of mediaitems: Meshes (3D models), videos, sounds, textures, images.
How to use it:
--This id can be retrieved in the script editor by selecting the Package Explorer in the tollbar and selecting the desirable mediaitem
local icon = MediaItem.newMI("id");
--An item will be added to the tree with an icon
tree:addItem("","backpack", "Great Backpack", 1, icon);

Method Summary
 stringgetID ()
 nilprint ()

Function Summary
 nilnewMI (string mediaitemkey)

Method Detail

getID

string getID ()
Returns the Media Item ID.

Returns:
string - Media Item ID.


print

nil print ()
Prints the Media Item data and attributes to the console.


Function Detail

newMI

nil newMI (string mediaitemkey)
Creates an instance of a Media Item from its Media Item Key.

Parameters:
string mediaitemkey - Media Item Key.