Skip to content

Commit 0b6c46b

Browse files
authored
Improve documentation for CreateAssetAsync
1 parent 70b1cc3 commit 0b6c46b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ methods:
7575
writeCapabilities: []
7676
- name: AssetService:CreateAssetAsync
7777
summary: |
78-
Creates a new asset from the given object.
78+
Uploads a new asset to Roblox from the given object.
7979
description: |
80-
Creates a new asset from the given object in Plugin or Open Cloud Luau
81-
Execution context.
80+
Uploads a new asset to Roblox from the given object.
81+
82+
This method can only be used in locally loaded plugins and uploads
83+
assets without prompting first.
8284
code_samples:
8385
- AssetService-CreateAssetAsync
8486
parameters:
@@ -133,8 +135,10 @@ methods:
133135
summary: |
134136
Creates a new version for an existing asset from the given object.
135137
description: |
136-
Creates a new version for an existing asset from the given object in
137-
Plugin or Open Cloud Luau Execution context.
138+
Uploads a new version for an existing asset from the given object.
139+
140+
This method can only be used in locally loaded plugins and uploads
141+
assets without prompting first.
138142
code_samples:
139143
- AssetService-CreateAssetVersionAsync
140144
parameters:

0 commit comments

Comments
 (0)