Component:AssetLoadStatus: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page AssetLoadStatus (Component) to Component:AssetLoadStatus: Creating component Namespace
add basic info
Line 9: Line 9:


<!--T:2-->
<!--T:2-->
== Intoduction ==
== Introduction ==
This is a component that tracks the load status of a list of assets locally.


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Assets|IAsset|  
|Assets|IAsset`1| List of assets that the component should listen to for loading status
|IsLoaded|Bool|  
|IsLoaded|Bool| Are all the assets in Assets list loaded?
|LoadProgress|Float|  
|LoadProgress|Float| The load progress of all the assets together
|ProgressWeight|Float|  
|ProgressWeight|Float|  
}}
}}
Line 22: Line 23:
<!--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.


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

Revision as of 03:05, 14 February 2024


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


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 load progress of all the assets together
ProgressWeight Float

Behavior

this component reads the loading progress of all the assets in it's list and returns their load progresses and progress weight averaged.

Examples

Related Components