5 using SiliconStudio.Core.Serialization.Contents;
7 namespace SiliconStudio.Core.Serialization.Assets
16 private bool loadContentReferences =
true;
18 public delegate
void ContentFilterDelegate(
ContentReference contentReference, ref
bool shouldBeLoaded);
28 get {
return defaultValue; }
39 get {
return ignoreReferences; }
48 public bool LoadContentReferences
50 get {
return loadContentReferences; }
51 set { loadContentReferences = value; }
60 public ContentFilterDelegate ContentFilter {
get; set; }
72 if (!types.Contains(contentReference.
Type))
73 shouldBeLoaded =
false;
Specifies settings for AssetManager.Load{T} operations.
Use the default mode depending on the type of the field/property.
static ContentFilterDelegate NewContentFilterByType(params Type[] types)
Creates a new content filter that won't load chunk if not one of the given types. ...