Skip to content

Commit a5c27e2

Browse files
authored
Add method Instance:ResetPropertyToDefault
1 parent 0b017c7 commit a5c27e2

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,29 @@ methods:
12371237
thread_safety: Unsafe
12381238
capabilities: []
12391239
writeCapabilities: []
1240+
- name: Instance:ResetPropertyToDefault
1241+
summary: |
1242+
Resets the given property value back to its default value.
1243+
description: |
1244+
This method will reset the value of the given property back to its default value,
1245+
as defined after being created via `Datatype.Instance.new()`.
1246+
Providing an invalid property or a read-only one will result in an error.
1247+
code-samples:
1248+
parameters:
1249+
- name: name
1250+
type: string
1251+
default:
1252+
summary: |
1253+
The name of the property to be reset.
1254+
returns:
1255+
- type: void
1256+
summary: ''
1257+
tags: []
1258+
deprecation-message: ''
1259+
security: None
1260+
thread_safety: Unsafe
1261+
capabilities: []
1262+
writeCapabilities: []
12401263
- name: Instance:SetAttribute
12411264
summary: |
12421265
Sets the attribute with the given name to the given value.

0 commit comments

Comments
 (0)