Here is main.js:
let myNumber = 5; export function getMyNumber(){ return myNumber; }
here is importsForEvents.js
import { getMyNumber } from "./main.js";
Purpose of the imports file is set to import for events.
Why is getMyNumber() still undefined when ran on start of layout in event sheet as script?
Develop games in your browser. Powerful, performant & highly capable.