-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Create horizon-worlds.md #1047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Create horizon-worlds.md #1047
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| --- | ||
| title: Roblox for Meta Horizon Worlds developers | ||
| description: This page compares Meta Horizon Worlds and Roblox Studio, focusing on key features and differences relevant to content creators. | ||
| --- | ||
|
|
||
| import ScriptTypes from './includes/engine-comparisons/script-types.md' | ||
| import CodeSample from './includes/engine-comparisons/fishing-pole-code-sample.md' | ||
|
|
||
| # Roblox for Meta Horizon Worlds developers | ||
| This page compares Meta Horizon Worlds and Roblox Studio, focusing on key features and differences relevant to content creators. | ||
|
|
||
| ## 1. Core Creation Environment | ||
|
|
||
| ### 1.1. Hierarchical Organization | ||
|
|
||
| | Feature | Meta Horizon Worlds | Roblox Studio | Similarity | | ||
| |------------------|--------------------------|--------------------------|--------------------------------------------------------------------------| | ||
| | Organization Tool| Hierarchy window | Workspace (Explorer window)| Tree structure for parent-child object relationships. | | ||
| | Purpose | Managing 3D entities | Managing 3D parts and objects | Facilitates scene management and object organization. | | ||
|
|
||
| ### **1.2. Asset Management:** | ||
TylerMWise marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| | Feature | Meta Horizon Worlds | Roblox Studio | Similarity | | ||
| |------------------|--------------------------|--------------------------|-------------------------------------------------------------------------| | ||
| | Asset Acquisition| Asset Store | Creator Store | Centralized library for acquiring reusable assets. | | ||
| | Asset Management | Assets window | Inventory | Tools for managing and organizing imported and acquired assets. | | ||
|
|
||
| ### 1.3. Terminology Differences | ||
|
|
||
| | Meta Horizon Worlds | Roblox Studio | Notes | | ||
| |----------------------|---------------|-------------------------------------------------------------------------| | ||
| | World | Place | Represents the primary environment or game level. | | ||
| | Entity | Part | Basic building block or object within the 3D environment. | | ||
| | Asset Template | Packages/Models | Container object grouping multiple gameplay elements. | | ||
| | Transform | Transform/CFrame| Represents an object's position, rotation, and scale. | | ||
| | Hierarchy window | Explorer window | Tool for managing the scene's object hierarchy. | | ||
| | Properties window | Properties window| Tool for modifying object properties. | | ||
| | Scene window | Viewport | 3D view of the world or place. | | ||
| | Assets window | Toolbox | Tool for accessing and managing assets. | | ||
| | SpawnPoint | SpawnLocation | Location where players appear in the world or place. | | ||
| | Console | Output | Window for displaying debugging information and script output. | | ||
| | Asset Library | Creator Store | Online asset library for importing assets into a project. | | ||
|
|
||
| ## 2. Scripting and Logic | ||
|
|
||
| ### 2.1. Scripting Languages | ||
|
|
||
| | Feature | Meta Horizon Worlds | Roblox Studio | Key Differences | | ||
| |------------------|---------------------|---------------|------------------------------------------------------------------------------| | ||
| | Language | TypeScript | Luau | TypeScript is statically typed, Luau is dynamically typed. | | ||
| | Syntax | JavaScript-like | Lua-based | TypeScript has a more structured, object-oriented syntax. | | ||
| | Typing | Statically Typed | Dynamically Typed| TypeScript provides compile-time type checking, Luau does not. | | ||
|
|
||
| **2.2. Script Execution Models** | ||
| | Feature | Meta Horizon Worlds | Roblox Studio | Key Differences | | ||
| |--------------------------|-----------------------------------|-----------------------------------|------------------------------------------------------------------------------| | ||
| | Script Types | Default (Server), Local (Client) | Server, Client, Module | Meta Horizon Worlds simplifies to server/client, Roblox has explicit modules. | | ||
| | Execution Context | Server or Client | Server, Client, Reusable Module | Roblox offers more granular control over script execution. | | ||
| | Local Script Ownership | Manual assignment via code | Automatic | Roblox handles local script ownership automatically. | | ||
|
|
||
| ### 2.3. Language Comparison Example (Sum Function) | ||
|
|
||
TylerMWise marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| **Luau (Roblox)** | ||
| ```lua | ||
TylerMWise marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| -- Sum numbers up to "n" and returns the sum | ||
| function sumUpTo(n) | ||
| local sum = 0 | ||
| for i = 1, n do | ||
| sum = sum + i | ||
| end | ||
| return sum | ||
| end | ||
|
|
||
| print(sumUpTo(5)) -- Output: 15 (1 + 2 + 3 + 4 + 5) | ||
| ``` | ||
|
|
||
| **TypeScript (Meta Horizon Worlds)** | ||
| ```ts | ||
TylerMWise marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| // Sum numbers up to "n" and returns the sum | ||
| function sumUpTo(n: number): number { | ||
| let sum = 0; | ||
| for (let i = 1; i <= n; i++) { | ||
| sum += i; | ||
| } | ||
| return sum; | ||
| } | ||
|
|
||
| console.log(sumUpTo(5)); // Output: 15 (1 + 2 + 3 + 4 + 5) | ||
| ``` | ||
|
|
||
| ### 2.4. Script Type Comparison | ||
|
|
||
| |Meta Horizon Worlds|Roblox| | ||
| |---|---| | ||
| |Script in Local Execution Mode|Client Script| | ||
| |Script in default Server Execution Mode|Server Script| | ||
| |Export functions/classes in any script|Module script| | ||
|
|
||
| ## 3. Asset Pipeline and Interoperability | ||
|
|
||
| ### 3.1. Asset Import | ||
|
|
||
| | Asset Type | Meta Horizon Worlds File Formats | Roblox Studio File Formats (Exported) | | ||
| |------------|-----------------------------------|--------------------------------------| | ||
| | 3D Model | .fbx, .png | .obj | | ||
| | Audio | .opus, .wav | N/A | | ||
| | Material | .png | .mtl | | ||
| | Skydome | .png, .exr | N/A | | ||
| | Texture | .png | .png | | ||
| | Text | .json | N/A | | ||
|
|
||
| ### 3.2. Roblox to Meta Horizon Worlds Conversion | ||
|
|
||
| - **Direct Conversion:** Limited. Only .fbx assets can be directly imported. | ||
TylerMWise marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - **Native Roblox Parts:** Require conversion to .fbx using tools like Blender. | ||
| - **Scripts:** Luau scripts are incompatible; require complete rewrites in TypeScript. | ||
| - **Exporting Roblox Assets:** Roblox exports models as .obj and materials as .mtl. | ||
| - | ||
TylerMWise marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.