You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en-us/projects/assets/index.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,16 +152,6 @@ The content folder's location depends on the user's operating system:
152
152
</TabItem>
153
153
</Tabs>
154
154
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:
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
-
165
155
### rbxthumb
166
156
167
157
`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
270
260
end
271
261
```
272
262
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:
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
+
<Alertseverity="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
+
273
275
### rbxhttp
274
276
275
277
`rbxhttp` is shorthand for `Class.ContentProvider.BaseUrl`, for example:
0 commit comments