Skip to content

Commit

Permalink
Add rbxtemp to valid url protocols (#878)
Browse files Browse the repository at this point in the history
## 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.

---------
  • Loading branch information
ccuser44 authored Oct 22, 2024
1 parent 2ea97f0 commit e402d76
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions content/en-us/projects/assets/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ end

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

### rbxtemp

`rbxtemp` allows you to refer `Class.File|Files`. Use `Class.File:GetTemporaryId()` to generate a valid `rbxtemp` URL. For example:

<span><Chip label='rbxtemp://1' color='primary' size='large' /></span>

### https / http

`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.
Expand Down
8 changes: 7 additions & 1 deletion content/en-us/reference/engine/datatypes/Content.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,18 @@ description: |
<td>Allows for easy loading of thumbnails.</td>
<td>rbxthumb://type=Asset&id=24813339&w=150&h=150</td>
</tr>
<tr>
<tr>
<td><b>rbxhttp</b></td>
<td>A path on the Roblox website</td>
<td>Fetches content from the Roblox website.</td>
<td>rbxhttp://Thumbs/Avatar.ashx?x=100&y=100&format=png</td>
</tr>
<tr>
<td><b>rbxtemp</b></td>
<td>A temporary asset</td>
<td>Loads a temporary asset. Often generated by `Class.File:GetTemporaryId()`.</td>
<td>rbxtemp://1</td>
</tr>
<tr>
<td><b>https</b>/<b>http</b></td>
<td>A website URL</td>
Expand Down

0 comments on commit e402d76

Please sign in to comment.