Skip to content

Commit

Permalink
update api
Browse files Browse the repository at this point in the history
  • Loading branch information
SridharaQweebi committed Dec 17, 2024
1 parent 0063c69 commit 1315c99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sim/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any>
if (parent && typeof parent.sendMessage === "function") {
// Call the sendMessage function in the parent window
Expand Down

0 comments on commit 1315c99

Please sign in to comment.