Add Callbacks for Completion and Progress in useLoader.preload
#3320
Labels
enhancement
New feature or request
useLoader.preload
#3320
First of all, I want to say that your library is fantastic and has saved me a lot of time and effort!
I encountered an issue where
useLoader.preload
does not support callbacks for completion and progress. This seems logical and feasible, considering that internally,THREE.Loader.load
is used, which accepts callbacks for both completion and progress. While I am aware ofuseProgress
, it doesn't suit my needs because I want to determine when a specific asset has successfully loaded, rather than all assets together.I want to load all my assets as soon as the page opens and show a loading indicator during this time.
useProgress
can jump between states, making it unclear when the loading of all my assets is truly complete.Here is an example of how I currently load my assets:
Additional Information:
Adding callbacks to
useLoader.preload
would greatly enhance its functionality, allowing for more granular control over asset loading and improving the user experience by providing precise loading indicators.The text was updated successfully, but these errors were encountered: