Source Academy Modules
    Preparing search index...

    Function saveToContext

    • Save a value to the context.

      There are 2 important values to be saved. The world and the ev3. The world needs to be saved in order for the simulation to access the physics, renderer, timer and console. The ev3 needs to be saved in order for the "ev3_" functions to access the EV3

      Parameters

      • key: string

        The key to save the value as

      • value: any

        The value to save

      Returns void

      void