System
System-level APIs and environment constraints.
Listener
Callback that observes changes on an object.
Usage
Listeners are registered via addListener methods on various objects:
property:addListener(function()
print("Value changed to", property.value)
end)
Output
Represents a typed output value from a script.
Usage
Outputs allow scripts to expose values to other parts of the system:
export type MyScript = {
result: Output<number>,
}
EnumValues
Collection of enum values.
Methods
Length (#)
Returns the number of enum values.
local count = #enumValues
See Also: PropertyEnum
Sandbox Limitations
Not available in Rive's Luau environment:
| Library | Status |
|---|---|
io | Not available |
os | Partial (os.clock(), os.time(), os.difftime() only) |
debug | Not available |
package | Not available |
loadfile, dofile, loadstring | Not available |
The __gc metamethod is also disabled.
Next Steps
- Continue to Quick Reference
- Review key terms in Glossary