Properties | CraytaKit
Skip to main content

Properties

Overrides

Override NameReturn TypeDescriptionTags
new_indexobjectSet a named property to a new valueNone
indexobjectGet the value of a propertyNone

Examples

This class refers to the properties object available on scripts.

MyScript.Properties = {
{ name = "example", type = "number", default = 1 }
}

function MyScript:Init()
self.properties.name -- this would be getting the name index on the properties
self.properties.foobar = 2 -- this would be setting a new_index on the properties
end
© 2021 CraytaKit