EnvironmentList

Summary

The list of available environments. (Don't create your own instances - use Sketch.environments)

Instance Properties

NameReturn TypeDescription

last

Environment Read-only

Returns the last environment

current

Environment Read/Write

Returns the current environment

this[index]

Environment Read-only

Returns the environment at the given index

count

number Read-only

The number of available environments

Instance Methods

environmentList:ByName(name)

Gets an Environment by name

Returns: Environment (The environment, or nil if no environment has that name)

Parameters:

NameTypeDefaultDescription

name

string

The name of the environment to get

Example

env = Sketch.environments:ByName("Pistachio")

Last updated