Skip to content

Commit 3f76a3f

Browse files
authored
Update index.md
1 parent 244d337 commit 3f76a3f

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

content/en-us/projects/assets/index.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,6 @@ The content folder's location depends on the user's operating system:
152152
</TabItem>
153153
</Tabs>
154154

155-
### rbxgameasset
156-
157-
`rbxgameasset` points to an asset uploaded through the [Asset Manager](../../projects/assets/manager.md). It allows access to assets by a user-friendly name instead of ID, so if you upload an image named `Potion.png`, you can reference it as:
158-
159-
<span><Chip label='rbxgameasset://Images/Potion.png' color='primary' size='large' /></span><br />
160-
161-
In the above example, "Images" is the category/folder that appears in the Asset Manager, and "Potion" is the asset name, minus its extension.
162-
163-
> Note that **rbxgameasset** only works for the current game. If you paste a parent object that utilizes the asset in to another game, the asset will not load (or will load a different asset if you've uploaded one with the same name to that ither game). If you need an asset to work across multiple games, use **rbxassetid** instead of **rbxgameasset**.
164-
165155
### rbxthumb
166156

167157
`rbxthumb` points to a thumbnail image for the provided asset. Its string format takes a thumbnail type (`type`), an asset ID (`id`), and width/height (`w`/`h`).
@@ -270,6 +260,18 @@ if success then
270260
end
271261
```
272262

263+
### rbxgameasset
264+
265+
`rbxgameasset` points to an asset uploaded through the [Asset Manager](../../projects/assets/manager.md). It allows access to assets by a user‑friendly name instead of ID, so if you upload an image named `Potion.png`, you can reference it as:
266+
267+
<span><Chip label='rbxgameasset://Images/Potion' color='primary' size='large' /></span><br />
268+
269+
In the above example, `Images` is the category/folder that appears in the [Asset Manager](../../projects/assets/manager.md) and `Potion` is the asset name, minus its extension.
270+
271+
<Alert severity="warning">
272+
`rbxgameasset` only works for the current game. If you paste a parent object that utilizes the asset into another game, the asset will not load (or will load a different asset if you've uploaded one with the same name to that other game). If you need an asset to work across multiple games, use `rbxassetid` instead of `rbxgameasset`.
273+
</Alert>
274+
273275
### rbxhttp
274276

275277
`rbxhttp` is shorthand for `Class.ContentProvider.BaseUrl`, for example:

0 commit comments

Comments
 (0)