Skip to content

Commit e402d76

Browse files
authored
Add rbxtemp to valid url protocols (#878)
## Changes Add documentation for the `rbxtemp` URL protocol that's used for temporary Fixes: [Content Data Types doesn't mention rbxtemp - Documentation Issues](https://devforum.roblox.com/t/content-data-types-doesnt-mention-rbxtemp/457256) ## Checks By submitting your pull request for review, you agree to the following: - [X] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses. - [X] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses. - [X] To the best of my knowledge, all proposed changes are accurate. ---------
1 parent 2ea97f0 commit e402d76

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,12 @@ end
262262

263263
<span><Chip label='rbxhttp://Thumbs/Avatar.ashx?x=100&y=100&format=png' color='primary' size='large' /></span>
264264

265+
### rbxtemp
266+
267+
`rbxtemp` allows you to refer `Class.File|Files`. Use `Class.File:GetTemporaryId()` to generate a valid `rbxtemp` URL. For example:
268+
269+
<span><Chip label='rbxtemp://1' color='primary' size='large' /></span>
270+
265271
### https / http
266272

267273
`https` or `http` points to the exact location of something on the internet. It only works on Roblox-approved domains and raises an error if you use it elsewhere.

content/en-us/reference/engine/datatypes/Content.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,18 @@ description: |
3939
<td>Allows for easy loading of thumbnails.</td>
4040
<td>rbxthumb://type=Asset&id=24813339&w=150&h=150</td>
4141
</tr>
42-
<tr>
42+
<tr>
4343
<td><b>rbxhttp</b></td>
4444
<td>A path on the Roblox website</td>
4545
<td>Fetches content from the Roblox website.</td>
4646
<td>rbxhttp://Thumbs/Avatar.ashx?x=100&y=100&format=png</td>
4747
</tr>
48+
<tr>
49+
<td><b>rbxtemp</b></td>
50+
<td>A temporary asset</td>
51+
<td>Loads a temporary asset. Often generated by `Class.File:GetTemporaryId()`.</td>
52+
<td>rbxtemp://1</td>
53+
</tr>
4854
<tr>
4955
<td><b>https</b>/<b>http</b></td>
5056
<td>A website URL</td>

0 commit comments

Comments
 (0)