Closed gtk2k closed 3 years ago
Working on a new async API. It'll look like this:
async void Start() {
var loader = new BasisUniversalLoader();
var result = await loader.LoadFromUrl(url);
material.mainTexture = result.texture;
Debug.Log(result.orientation); // Also contains orientation info
}
Similar complexity/boilerplate code, no fiddling with callbacks, but still async.
I don't know how to make it sync, but I also don't see any reason one would want that.
Any objections?
Oh! Yes! My request was incorrect. Asynchronous is okay. No synchronization required!
Thanx!
I want a method style transcoder like this.