I have a layout that uses the default Sprite Font object. The character width and height are both set to 16 in the editor. Is it possible to get the corresponding property values in a script file? For example, something like the following where `SpriteFont` is the object's name:
`runtime.objects.SpriteFont.getFirstInstance().characterSize.width`
Develop games in your browser. Powerful, performant & highly capable.
The current solution is to call an event sheet function returning the value(s) you want. Here is an example that returns the default width for a Sprite Font object named "SpriteFont":
const width = runtime.callFunction('GetCharacterWidth');