From 1315c99be384dee8704e726594889a2c003386e9 Mon Sep 17 00:00:00 2001 From: SridharaQweebi <85789105+SridharaQweebi@users.noreply.github.com> Date: Tue, 17 Dec 2024 23:57:04 +0530 Subject: [PATCH] update api --- sim/api.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sim/api.ts b/sim/api.ts index 91f94eae..ed4d0f49 100644 --- a/sim/api.ts +++ b/sim/api.ts @@ -27,7 +27,10 @@ namespace pxsim.hare { } namespace pxsim.unity { - export function logHello(){ + + //% blockId=helloUnity block="helloUnity" + //% weight=100 + export function helloUnity(){ const parent = window.parent as Record if (parent && typeof parent.sendMessage === "function") { // Call the sendMessage function in the parent window