Ref special key since v0.2 ¶
When applied to an instance, outputs the instance to a state object. It should be used with a value.
Example Usage¶
local myRef = Value()
New "Part" {
[Ref] = myRef
}
print(myRef:get()) --> Part
Technical Details¶
This special key runs at the observer
stage.
On cleanup, the state object is reset to nil, in order to avoid potential memory leaks.