Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,28 @@ public override IContentCollection GetContentCollection()
{
var contentCollection = new ContentCollection();

// include everything in the folder
contentCollection.Include<WildcardRule>("*");
// By default, no content will be imported from the Assets folder using the default importer for their file type.
// Please define your content collection rules here.

// By default, all content will be imported from the Assets folder using the default importer for their file type.
// Please add any custom content collection rules here.
/* Examples

// Import all content in the Assets folder using the default importer for their file type.
content.Include<WildcardRule>("*");

// Only copy content from the assets folder rather than build it with the pipeline.
content.IncludeCopy<WildcardRule>("*.json");

// Exclude assets that match the pattern., only required overriding a default import behaviour.
content.Exclude<WildcardRule>("Font/*.txt");

// Include a specific asset with processor parameters.
content.Include("Models/character.glb", new FbxImporter(),
new MeshAnimatedModelProcessor()
{
Scale = 100.0f
}
);
*/

return contentCollection;
}
Expand Down
25 changes: 21 additions & 4 deletions CSharp/content/MonoGame.ContentBuilder.CSharp/Builder/Builder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,29 @@ public class Builder : ContentBuilder
public override IContentCollection GetContentCollection()
{
var contentCollection = new ContentCollection();
6
// By default, no content will be imported from the Assets folder using the default importer for their file type.
// Please define your content collection rules here.

// include everything in the folder
contentCollection.Include<WildcardRule>("*");
/* Examples

// By default, all content will be imported from the Assets folder using the default importer for their file type.
// Please add any custom content collection rules here.
// Import all content in the Assets folder using the default importer for their file type.
content.Include<WildcardRule>("*");

// Only copy content from the assets folder rather than build it with the pipeline.
content.IncludeCopy<WildcardRule>("*.json");

// Exclude assets that match the pattern., only required overriding a default import behaviour.
content.Exclude<WildcardRule>("Font/*.txt");

// Include a specific asset with processor parameters.
content.Include("Models/character.glb", new FbxImporter(),
new MeshAnimatedModelProcessor()
{
Scale = 100.0f
}
);
*/

return contentCollection;
}
Expand Down
Loading