Adding a Custom Importer
XNA Game Studio provides standard importers and processors for a number of common file formats used to store such basic game assets as models, materials effects, sprites, textures, and so on. For a list of file formats supported by these standard importers and processors, see Standard Importers and Processors.
|Before you open an existing project or component, determine the trustworthiness of the code outside of the Visual Studio designer. Opening projects or components in the Visual Studio designer automatically executes that code on your local machine in the trusted process of VCSExpress.exe or DevEnv.exe.|
To add a custom importer or processor to a game project
This procedure assumes you have copied the new importer or processor to a local folder in the game project.
- Open XNA Game Studio.
- Load the solution associated with your game.
- In Solution Explorer, right-click Content, and then click Add Reference.
- Navigate to the directory containing the assembly with the custom importer or processor, and then add it to the solution.
- Save the solution.
The new importer or processor now appears as a choice in using dialog properties for importing or processing a newly added game asset.