Table of Contents

Class EffectImporter

Namespace
Microsoft.Xna.Framework.Content.Pipeline
Assembly
MonoGame.Framework.Content.Pipeline.dll

Provides methods for reading effect (.fx) files for use in the Content Pipeline.

[ContentImporter(".fx", DisplayName = "Effect Importer - MonoGame", DefaultProcessor = "EffectProcessor")]
public class EffectImporter : ContentImporter<EffectContent>, IContentImporter
Inheritance
EffectImporter
Implements
Inherited Members

Constructors

EffectImporter()

Initializes a new instance of EffectImporter.

public EffectImporter()

Methods

Import(string, ContentImporterContext)

Called by the XNA Framework when importing an .fx file to be used as a game asset. This is the method called by the XNA Framework when an asset is to be imported into an object that can be recognized by the Content Pipeline.

public override EffectContent Import(string filename, ContentImporterContext context)

Parameters

filename string

Name of a game asset file.

context ContentImporterContext

Contains information for importing a game asset, such as a logger interface.

Returns

EffectContent

Resulting game asset.