Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Dec 13, 2023. It is now read-only.
/roactPublic archive

A view management library for Roblox Lua similar to React

License

NotificationsYou must be signed in to change notification settings

Roblox/roact

Repository files navigation

This repository is deprecated and no longer maintained.

Seereact-lua for our currently maintained React in Lua library.

Roact

GitHub Actions Build StatusCoveralls CoverageDocumentation
A declarative UI library for Roblox Lua inspired byReact.
 

Installation

Method 1: Model File (Roblox Studio)

  • Download therbxm model file attached to the latest release from theGitHub releases page.
  • Insert the model into Studio into a place likeReplicatedStorage

Method 2: Filesystem

  • Copy thesrc directory into your codebase
  • Rename the folder toRoact
  • Use a plugin likeRojo to sync the files into a place

For a detailed guide and examples, check outthe official Roact documentation.

localLocalPlayer=game:GetService("Players").LocalPlayerlocalRoact=require(Roact)-- Create our virtual tree describing a full-screen text label.localtree=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 PlayerGuiRoact.mount(tree,LocalPlayer.PlayerGui,"HelloWorld")

License

Roact is available under the Apache 2.0 license. SeeLICENSE.txt for details.


[8]ページ先頭

©2009-2025 Movatter.jp