Class RawDataAsset
Raw bytes container asset.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Content/Assets/RawDataAsset.h
Syntax
public class RawDataAsset : public BinaryAsset
Fields
Data
The bytes array stored in the asset.
Declaration
public Array<byte> Data
Field Value
|
Array<byte>
|
Methods
getChunksToPreload()
Gets packed chunks indices to preload before asset loading action
Declaration
protected virtual AssetChunksFlag getChunksToPreload() const override
Returns
|
AssetChunksFlag
Chunks to load flags |
Overrides
GetMemoryUsage()
Gets amount of CPU memory used by this resource (in bytes). It's a rough estimation. Memory may be fragmented, compressed or sub-allocated so the actual memory pressure from this resource may vary.
Declaration
public virtual uint64 GetMemoryUsage() const override
Returns
|
uint64
|
Overrides
load()
Load data from the chunks
Declaration
protected virtual LoadResult load() override
Returns
|
LoadResult
Loading result |
Overrides
Save(const StringView& path=StringView::Empty)
Saves this asset to the file. Supported only in Editor.
Declaration
public virtual bool Save(const StringView& path=StringView::Empty) override
Parameters
|
StringView
path
The custom asset path to use for the saving. Use empty value to save this asset to its own storage location. Can be used to duplicate asset. Must be specified when saving virtual asset. |
Returns
|
bool
True when cannot save data, otherwise false. |
Overrides
unload(bool isReloading)
Unloads asset data
Declaration
protected virtual void unload(bool isReloading) override
Parameters
|
bool
isReloading
True if asset is reloading data, otherwise false. |