Table of Contents

Class ContentManagerLoaderSettings

Namespace
Stride.Core.Serialization.Contents
Assembly
Stride.Core.Serialization.dll

Specifies settings for Load<T>(string, ContentManagerLoaderSettings) operations.

public sealed class ContentManagerLoaderSettings
Inheritance
ContentManagerLoaderSettings

Properties

AllowContentStreaming

Gets or sets a value indicating whether assets can be loading using streaming service.

public bool AllowContentStreaming { get; set; }

Property Value

bool

true if load content using streaming service; otherwise, false.

ContentFilter

Gets or sets a filter that can indicate whether IReference should be loaded.

public ContentManagerLoaderSettings.ContentFilterDelegate ContentFilter { get; set; }

Property Value

ContentManagerLoaderSettings.ContentFilterDelegate

The content reference filter.

Default

Gets the default loader settings.

public static ContentManagerLoaderSettings Default { get; }

Property Value

ContentManagerLoaderSettings

The default loader settings.

IgnoreReferences

Gets the loader settings which doesn't load content references.

public static ContentManagerLoaderSettings IgnoreReferences { get; }

Property Value

ContentManagerLoaderSettings

The loader settings which doesn't load content references.

LoadContentReferences

Gets or sets a value indicating whether IReference should be loaded.

public bool LoadContentReferences { get; set; }

Property Value

bool

true if IReference should be loaded; otherwise, false.

StreamingDisabled

Gets the loader settings which doesn't support resources streaming. Resources will be loaded without async streaming.

public static ContentManagerLoaderSettings StreamingDisabled { get; }

Property Value

ContentManagerLoaderSettings

The loader settings which doesn't support resources streaming.

Methods

NewContentFilterByType(params Type[])

Creates a new content filter that won't load chunk if not one of the given types.

public static ContentManagerLoaderSettings.ContentFilterDelegate NewContentFilterByType(params Type[] types)

Parameters

types Type[]

The accepted types.

Returns

ContentManagerLoaderSettings.ContentFilterDelegate