Skip to content

Commit

Permalink
Forgot to add the infomation for setting AssetManager loaders in READ…
Browse files Browse the repository at this point in the history
…ME.md.
  • Loading branch information
niraj-rayalla committed Apr 6, 2022
1 parent fe7d048 commit 012ec4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ run copyEffekseerNatives
effekseer = new EffekseerParticle(manager);
AssetManager assetManager = new AssetManager(fileHandleResolver);

// Register the following asset loaders for the asset manager instance once before any loading is executed
assetManager.setLoader(EffekseerParticleSubAssetLoader.Result.class, null, new EffekseerParticleSubAssetLoader(fileHandleResolver));
assetManager.setLoader(EffekseerParticleAssetLoader.Result.class, null, new EffekseerParticleAssetLoader(fileHandleResolver));


// For immediate loading
effekseer.syncLoad(assetManager, "data/tu.efk", false);
// For asynchronous loading
Expand Down

0 comments on commit 012ec4d

Please sign in to comment.