Table of Contents

Class PrefabAssetLoader

Namespace
Axolotl2D.Prefabs
Assembly
Axolotl2D.dll

Loads and validates UTF-8 JSON .axprefab assets.

public sealed class PrefabAssetLoader : IAssetLoader<PrefabAsset>
Inheritance
PrefabAssetLoader
Implements
Inherited Members

Methods

LoadAsync(Stream, CancellationToken)

Loads the complete stream. The caller retains ownership of the stream.

public ValueTask<PrefabAsset> LoadAsync(Stream stream, CancellationToken cancellationToken = default)

Parameters

stream Stream
cancellationToken CancellationToken

Returns

ValueTask<PrefabAsset>