[Roblox] 中文API 翻译 | 概览
写在前面的话
roblox 更新了新的API文档,去除了原本中文版本开发文档,虽然全英文阅读API是每个程序员的基础技能,但是为了提高自己学习引擎效率(第一次接触编程学习),我抽时间翻译了全篇roblox API开发文档,并且使用中英文对照翻译的方式,加深学习,文档仅供学习参考,roblox官方经常更新文档API以及增添新功能,如有错误,还请指正
翻译文章顺序基于我学习API的顺序展开,可能会优先翻译核心的API,比如对象创建,事件处理等等,API顺序依照官网顺序排列
roblox脚本基于Lua 翻译时间 2024.9.2
Roblox Engine API Reference
Classes 类
Classes represent core objects and services in the Roblox engine. They contain properties, methods, events, and callbacks.
点击查看 Classes 专栏
类表示 Roblox 引擎中的核心对象和服务。它们包含 属性、方法、事件和回调。
Data Types 数据类型
Data Types are types unique to the Roblox engine. They can contain constructors, properties, and methods.
数据类型是 Roblox 引擎独有的类型。它们可以包含构造函数、 性质(properties )和方法 (methods)。
Enums 枚举
Enums are groups of constants that define preset values that you can use with other APIs.
枚举是一组常量,它们定义了可以与其他api一起使用的预设值。
Globals 全局变量
Globals are functions or properties that you can use in any script. Lua globals are native to Lua while Roblox globals are found only on Roblox.
全局变量是您可以在任何脚本中使用的函数或属性。Lua 全局变量 是 Lua 原生的,而 Roblox 全局变量仅在 Roblox 上找到。(重要)
Libraries 库
Libraries are groups of functions that you can use to manipulate built-in data types.
库是可用于操作内置数据类型的函数组。