ContentManagerLoaderSettings Class
Namespace: Stride.Core.Serialization.ContentsAssembly: Stride.Core.Serialization.dll
Specifies settings for Load<T>(String, ContentManagerLoaderSettings) operations.
public sealed class ContentManagerLoaderSettings
| Name | Description | |
|---|---|---|
| Properties | ||
| AllowContentStreaming | Gets or sets a value indicating whether assets can be loading using streaming service. |
|
| ContentFilter | Gets or sets a filter that can indicate whether IReference should be loaded. |
|
| Default | Gets the default loader settings. |
|
| IgnoreReferences | Gets the loader settings which doesn't load content references. |
|
| LoadContentReferences | Gets or sets a value indicating whether IReference should be loaded. |
|
| StreamingDisabled | Gets the loader settings which doesn't support resources streaming. Resources will be loaded without async streaming. |
|
| Methods | ||
| NewContentFilterByType(Type[]) | Creates a new content filter that won't load chunk if not one of the given types. |
|
Properties
AllowContentStreaming
Gets or sets a value indicating whether assets can be loading using streaming service.
public bool AllowContentStreaming { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
ContentFilter
Gets or sets a filter that can indicate whether IReference should be loaded.
public ContentManagerLoaderSettings.ContentFilterDelegate ContentFilter { get; set; }
Property Value
| Type | Description |
|---|---|
| ContentManagerLoaderSettings.ContentFilterDelegate | The content reference filter. |
Default
Gets the default loader settings.
public static ContentManagerLoaderSettings Default { get; }
Property Value
| Type | Description |
|---|---|
| ContentManagerLoaderSettings | The default loader settings. |
IgnoreReferences
Gets the loader settings which doesn't load content references.
public static ContentManagerLoaderSettings IgnoreReferences { get; }
Property Value
| Type | Description |
|---|---|
| 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
| Type | Description |
|---|---|
| System.Boolean |
|
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
| Type | Description |
|---|---|
| ContentManagerLoaderSettings | The loader settings which doesn't support resources streaming. |
Methods
NewContentFilterByType(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
| Type | Name | Description |
|---|---|---|
| System.Type[] | types | The accepted types. |
Returns
| Type | Description |
|---|---|
| ContentManagerLoaderSettings.ContentFilterDelegate |