Matthias
  • 👋Welcome
  • 👶Getting started
  • 📞Callbacks
  • 🕑Variables
    • 🎯Getter functions
      • 🙏Fields available for getting
  • 🧑‍🦯Visuals
    • ◻️Shapes
      • 📏Line
      • ⚪Circle
      • ⬜Rectangle
    • 📸Media
      • 🖼️Image
      • 🔡Text
    • 🔔Notifications
  • ☁️Miscellaneous
    • 📲Image memory management
Powered by GitBook
On this page
  1. Variables

Getter functions

This page helps you understand getter functions in the context of Matthias scripting.

PreviousCallbacksNextFields available for getting

Getters are functions that are used to access properties on an object. In this case, the properties / fields of the Application struct and its children.

Getter functions in Matthias return the serialized (Serialized with ) value of the given entry.

Script example for printing out the logged in User's username

print(userinformation.username)

Please note that when accessing struct, all names are in lowercase compared to the source code.

struct UserInformation {
    hello: String
}

Translates to:

userinformation.hello
🕑
🎯
Serde