Skip to content

Commit 61fe079

Browse files
metatablecatIgnisRBXitsfrank
authored
Improve documentation for CreateAssetAsync (#1049)
## Changes The asset creation methods is currently only usable by plugins loaded in the LocalPlugin folder, this change marks that in the two relevant methods. ## 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. --------- Co-authored-by: IgnisRBX <[email protected]> Co-authored-by: Francis O'Brien <[email protected]>
1 parent efc6536 commit 61fe079

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

content/en-us/reference/engine/classes/AssetService.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,12 @@ methods:
9494
writeCapabilities: []
9595
- name: AssetService:CreateAssetAsync
9696
summary: |
97-
Creates a new asset from the given object.
97+
Uploads a new asset to Roblox from the given object.
9898
description: |
99-
Creates a new asset from the given object in Plugin or Open Cloud Luau
100-
Execution context.
99+
Uploads a new asset to Roblox from the given object.
100+
101+
Currently, this method can only be used in locally loaded plugins and uploads
102+
assets without prompting first.
101103
code_samples:
102104
- AssetService-CreateAssetAsync
103105
parameters:
@@ -150,10 +152,12 @@ methods:
150152
writeCapabilities: []
151153
- name: AssetService:CreateAssetVersionAsync
152154
summary: |
153-
Creates a new version for an existing asset from the given object.
155+
Uploads a new version for an existing asset from the given object.
154156
description: |
155-
Creates a new version for an existing asset from the given object in
156-
Plugin or Open Cloud Luau Execution context.
157+
Uploads a new version for an existing asset from the given object.
158+
159+
Currently, this method can only be used in locally loaded plugins and uploads
160+
assets without prompting first.
157161
code_samples:
158162
- AssetService-CreateAssetVersionAsync
159163
parameters:

0 commit comments

Comments
 (0)