Component:AssetLoadStatus: Difference between revisions

From Resonite Wiki
add basic info
Corrections, unstub
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=AssetLoadStatusComponent.png
|Image=AssetLoadStatusComponent.png
Line 17: Line 16:
|Assets|IAsset`1| List of assets that the component should listen to for loading status
|Assets|IAsset`1| List of assets that the component should listen to for loading status
|IsLoaded|Bool| Are all the assets in Assets list loaded?
|IsLoaded|Bool| Are all the assets in Assets list loaded?
|LoadProgress|Float| The load progress of all the assets together
|LoadProgress|Float| The ratio of "how many assets are loaded" to the total asset count.
|ProgressWeight|Float|  
|ProgressWeight|Float| The total count of assets in <code>Assets</code>.
}}
}}


<!--T:4-->
<!--T:4-->
== Behavior ==
== Behavior ==
this component reads the loading progress of all the assets in it's list and returns their load progresses and progress weight averaged.
This component returns a ratio of how many of the given assets are actually loaded.


<!--T:5-->
<!--T:5-->

Revision as of 12:55, 14 February 2024

Component image 
AssetLoadStatus component as seen in the Scene Inspector


Introduction

This is a component that tracks the load status of a list of assets locally.

Usage

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
Assets IAsset`1 List of assets that the component should listen to for loading status
IsLoaded Bool Are all the assets in Assets list loaded?
LoadProgress Float The ratio of "how many assets are loaded" to the total asset count.
ProgressWeight Float The total count of assets in Assets.

Behavior

This component returns a ratio of how many of the given assets are actually loaded.

Examples

Related Components