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
Creates a new `Class.EditableImage`. By default, the resolution is set at
25
+
512×512, but you can specify a different size using the method's
26
+
option table.
27
+
28
+
If the device‑specific editable memory budget is exhausted, creation fails
29
+
and this method returns `nil`.
30
+
code_samples: []
31
+
parameters:
32
+
- name: editableImageOptions
33
+
type: Dictionary?
34
+
default:
35
+
summary: |
36
+
Options table containing controls for the method:
37
+
38
+
- `Size` – A `Datatype.Vector2` that specifies the image's desired
39
+
width and height.
40
+
returns:
41
+
- type: Object
42
+
summary: ''
43
+
tags: []
44
+
deprecation_message: ''
45
+
security: None
46
+
thread_safety: Unsafe
47
+
capabilities: []
48
+
writeCapabilities: []
49
+
- name: AssetService:CreateEditableMesh
50
+
summary: |
51
+
Creates a new, empty `Class.EditableMesh`.
52
+
description: |
53
+
Creates a new, empty `Class.EditableMesh`. Vertices, triangles and their
54
+
attributes can be added dynamically to it. If the device‑specific editable
55
+
memory budget is exhausted, creation will fail and this method will return
56
+
`nil`.
57
+
code_samples: []
58
+
parameters:
59
+
- name: editableMeshOptions
60
+
type: Dictionary?
61
+
default:
62
+
summary: ''
63
+
returns:
64
+
- type: Object
65
+
summary: ''
66
+
tags: []
67
+
deprecation_message: ''
68
+
security: None
69
+
thread_safety: Unsafe
70
+
capabilities: []
71
+
writeCapabilities: []
72
+
- name: AssetService:CheckTextureAlphaAsync
73
+
summary: ''
74
+
description: ''
75
+
code_samples: []
76
+
parameters:
77
+
- name: textureId
78
+
type: ContentId
79
+
default:
80
+
summary: ''
81
+
returns:
82
+
- type: bool
83
+
summary: ''
84
+
tags:
85
+
- Yields
86
+
deprecation_message: ''
87
+
security: RobloxScriptSecurity
88
+
thread_safety: Unsafe
89
+
capabilities: []
90
+
writeCapabilities: []
20
91
- name: AssetService:CreateAssetAsync
21
92
summary: |
22
93
Creates a new asset from the given object.
23
94
description: |
24
-
Creates a new asset from the given object in Plugin or Open Cloud Luau Execution context.
95
+
Creates a new asset from the given object in Plugin or Open Cloud Luau
96
+
Execution context.
25
97
code_samples:
26
-
- AssetService-CreateAssetAsync
98
+
- AssetService-CreateAssetAsync
27
99
parameters:
28
100
- name: object
29
101
type: Object
@@ -35,17 +107,19 @@ methods:
35
107
default:
36
108
summary: |
37
109
Currently supported types are:
38
-
39
-
- `Enum.AssetType.Model` – with `object` as any valid `Class.Instance` root.
40
-
- `Enum.AssetType.Plugin` – with `object` as any valid `Class.Instance` root.
41
-
- `Enum.AssetType.Mesh` – with `object` as any valid `Class.EditableMesh` root.
42
-
- `Enum.AssetType.Image` – with `object` as any valid `Class.EditableImage` root.
43
-
- name: options
44
-
type: Dictionary?
110
+
- `Enum.AssetType.Model` – with `object` as any valid `Class.Instance`
111
+
root.
112
+
- `Enum.AssetType.Plugin` – with `object` as any valid
113
+
`Class.Instance` root.
114
+
- `Enum.AssetType.Mesh` – with `object` as any valid
115
+
`Class.EditableMesh` root.
116
+
- `Enum.AssetType.Image` – with `object` as any valid
117
+
`Class.EditableImage` root.
118
+
- name: requestParameters
119
+
type: Dictionary
45
120
default:
46
121
summary: |
47
122
Options table containing asset metadata:
48
-
49
123
- `Name` – Name of the asset as a string. Defaults to `[object.Name]`.
50
124
- `Description` – Description of the asset as a string. Defaults to `"Created with AssetService:CreateAssetAsync"`.
51
125
- `CreatorId` – ID of the asset creator as a number. Defaults to the logged in Roblox Studio user for Plugin context. Required for Open Cloud Luau Execution context.
@@ -68,9 +142,10 @@ methods:
68
142
summary: |
69
143
Creates a new version for an existing asset from the given object.
70
144
description: |
71
-
Creates a new version for an existing asset from the given object in Plugin or Open Cloud Luau Execution context.
145
+
Creates a new version for an existing asset from the given object in
146
+
Plugin or Open Cloud Luau Execution context.
72
147
code_samples:
73
-
- AssetService-CreateAssetVersionAsync
148
+
- AssetService-CreateAssetVersionAsync
74
149
parameters:
75
150
- name: object
76
151
type: Object
@@ -82,22 +157,24 @@ methods:
82
157
default:
83
158
summary: |
84
159
Currently supported types are:
85
-
86
-
- `Enum.AssetType.Model` – with `object` as any valid `Class.Instance` root.
87
-
- `Enum.AssetType.Plugin` – with `object` as any valid `Class.Instance` root.
88
-
- `Enum.AssetType.Mesh` – with `object` as any valid `Class.EditableMesh` root.
89
-
- `Enum.AssetType.Image` – with `object` as any valid `Class.EditableImage` root.
90
-
- name: targetAssetId
160
+
- `Enum.AssetType.Model` – with `object` as any valid `Class.Instance`
161
+
root.
162
+
- `Enum.AssetType.Plugin` – with `object` as any valid
163
+
`Class.Instance` root.
164
+
- `Enum.AssetType.Mesh` – with `object` as any valid
165
+
`Class.EditableMesh` root.
166
+
- `Enum.AssetType.Image` – with `object` as any valid
167
+
`Class.EditableImage` root.
168
+
- name: assetId
91
169
type: int64
92
170
default:
93
171
summary: |
94
172
The ID of the asset for the new version.
95
-
- name: options
96
-
type: Dictionary?
173
+
- name: requestParameters
174
+
type: Dictionary
97
175
default:
98
176
summary: |
99
177
Options table containing asset metadata:
100
-
101
178
- `Name` – A `string`. Name of the asset. Default: object.Name.
102
179
- `Description` – A `string`. Description of the asset. Default: "Created with AssetService:CreateAssetAsync".
103
180
- `CreatorId` – A `number`. ID of the asset creator. Default: The logged in Roblox Studio user for Plugin context. Required for Open Cloud Luau Execution context.
@@ -106,7 +183,8 @@ methods:
106
183
returns:
107
184
- type: Tuple
108
185
summary: |
109
-
The `Enum.CreateAssetResult` and asset version number pair if successful.
186
+
The `Enum.CreateAssetResult` and asset version number pair if
187
+
successful.
110
188
tags:
111
189
- Yields
112
190
deprecation_message: ''
@@ -116,77 +194,6 @@ methods:
116
194
- PluginOrOpenCloud
117
195
writeCapabilities:
118
196
- PluginOrOpenCloud
119
-
- name: AssetService:CreateEditableImage
120
-
summary: |
121
-
Creates a new `Class.EditableImage`.
122
-
description: |
123
-
Creates a new `Class.EditableImage`. By default, the resolution is set at
124
-
512×512, but you can specify a different size using the method's
125
-
option table.
126
-
127
-
If the device‑specific editable memory budget is exhausted, creation fails
128
-
and this method returns `nil`.
129
-
code_samples: []
130
-
parameters:
131
-
- name: editableImageOptions
132
-
type: Dictionary?
133
-
default:
134
-
summary: |
135
-
Options table containing controls for the method:
136
-
137
-
- `Size` – A `Datatype.Vector2` that specifies the image's desired
138
-
width and height.
139
-
returns:
140
-
- type: Object
141
-
summary: ''
142
-
tags: []
143
-
deprecation_message: ''
144
-
security: None
145
-
thread_safety: Unsafe
146
-
capabilities: []
147
-
writeCapabilities: []
148
-
- name: AssetService:CreateEditableMesh
149
-
summary: |
150
-
Creates a new, empty `Class.EditableMesh`.
151
-
description: |
152
-
Creates a new, empty `Class.EditableMesh`. Vertices, triangles and their
153
-
attributes can be added dynamically to it. If the device‑specific editable
154
-
memory budget is exhausted, creation will fail and this method will return
155
-
`nil`.
156
-
code_samples: []
157
-
parameters:
158
-
- name: editableMeshOptions
159
-
type: Dictionary?
160
-
default:
161
-
summary: ''
162
-
returns:
163
-
- type: Object
164
-
summary: ''
165
-
tags: []
166
-
deprecation_message: ''
167
-
security: None
168
-
thread_safety: Unsafe
169
-
capabilities: []
170
-
writeCapabilities: []
171
-
- name: AssetService:CheckTextureAlphaAsync
172
-
summary: ''
173
-
description: ''
174
-
code_samples: []
175
-
parameters:
176
-
- name: textureId
177
-
type: ContentId
178
-
default:
179
-
summary: ''
180
-
returns:
181
-
- type: bool
182
-
summary: ''
183
-
tags:
184
-
- Yields
185
-
deprecation_message: ''
186
-
security: RobloxScriptSecurity
187
-
thread_safety: Unsafe
188
-
capabilities: []
189
-
writeCapabilities: []
190
197
- name: AssetService:CreateEditableImageAsync
191
198
summary: |
192
199
Creates a new `Class.EditableImage` object populated with the given image.
0 commit comments