From b4e089de5937083d17b8cb61932c02fce510e118 Mon Sep 17 00:00:00 2001 From: Cody Merritt Anhorn Date: Sun, 27 Jun 2021 22:49:40 -0500 Subject: [PATCH] Update README.md Added Supported API row for Action Result Callback --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2ce13835..5e661010 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ Get Instance Accessor | You can have access to the ***get*** accessor on an obje Set Instance Accessor | You can use the ***set*** accessor on an objects. | ```engine.onCanvasPointerOutObservable.add(() => doSomething())``` | :heavy_check_mark: Action Callback | You can run Async based code. | ```meshLoader.OnSuccess(new ActionCallback(mesh => { return Task.CompletedTask; }))``` | :heavy_check_mark: Action Callback in Literal | You can run Async based code. | ```new HeightMapMesh({ onReady = new ActionCallback(mesh => { return Task.CompletedTask; }) })``` | :heavy_check_mark: +Action Result Callback | You can run an action with a result to the caller. | ```meshLoader.OnSuccess(new ActionResultCallback(mesh => { return mesh != null; }))``` | :heavy_check_mark: Notes on the framework, it might not have the exact API supplied by a TypeScript definition file, in that it might transform the API into something more general and friendly to C#. I used C# as my main source of inspiration for the generated code.