Skip to content

yKimisaki/AsyncAddressable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AsyncAddressable

AddressablesをUniTaskのLazyPromiseでよしなに

LazyUniTask

https://gist.github.com/yKimisaki/5f7d2846ba21fd9bfb5358de6e5f0ed8

// この段階では読み込み処理は走らない
var unitychan = LazyUniTask.LoadAddressables<GameObject>("Assets/UnityChan/Prefabs/unitychan.prefab");

// awaitした段階で読み込み
var prefab = await unitychan;

// 2回目以降は同じAwaiterを使いまわすので、完了していれば即結果がもらえる
var prefab2 = await unitychan;

LICENSE

light_frame

© Unity Technologies Japan/UCL

About

AddressablesをUniTaskのLazyPromiseでよしなに

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages