在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):Roblox/roact开源软件地址(OpenSource Url):https://github.com/Roblox/roact开源编程语言(OpenSource Language):Lua 99.8%开源软件介绍(OpenSource Introduction):Roact
A declarative UI library for Roblox Lua inspired by React.
InstallationMethod 1: Model File (Roblox Studio)
Method 2: Filesystem
DocumentationFor a detailed guide and examples, check out the official Roact documentation. local LocalPlayer = game:GetService("Players").LocalPlayer
local Roact = require(Roact)
-- Create our virtual tree describing a full-screen text label.
local tree = Roact.createElement("ScreenGui", {}, {
Label = Roact.createElement("TextLabel", {
Text = "Hello, world!",
Size = UDim2.new(1, 0, 1, 0),
}),
})
-- Turn our virtual tree into real instances and put them in PlayerGui
Roact.mount(tree, LocalPlayer.PlayerGui, "HelloWorld") LicenseRoact is available under the Apache 2.0 license. See LICENSE.txt for details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论