GDPlugin Help -- Plugin ID vs Index
Navigation:
This is here to clear up some possible confusing between the Plugin ID and the PluginIndex.
The Plugin ID is a unique number that is passed to a plugin during initialization. This becomes the plugin's SessionID, which it MUST pass when sending events back to the application.
The PluginIndex is the index of the plugin among the currently installed plugins. This is the index used with all methods and properties of TGDPluginController. This is done so that you can easily iterate through all of the installed plugins by going from 0 to TGDPluginController.PluginCount-1.
Generally, Plugin ID will be equal to PluginIndex. The only time this will not be true is if you load, for example, 3 plugins. They will be assigned the Plugin IDs (and Indexes) of 0, 1, 2 (in order of loading). If you Unload plugin #2, the Plugin ID of the last plugin will still be 2 (unchanged), but its PluginIndex will now be 1.