Closed Anaminus closed 2 years ago
- Should the example property be
Instance.AttributesSerialized
orInstance.Attributes
?
I think we should use Instance.Attributes
for the example property. Even though we technically made it up and the serialized property exists, no one should have to interact with the special serialized name for the property.
It's easy to imagine that Roblox probably has an internal property called Attributes
. We would've done the same thing for Tags
had they done the weird serialize-only property descriptor dance.
- Should the "Attributes" property be mentioned here?
Yeah! This is the property that users should see and think about. It might not be immediately obvious to every user that this is where we store Attributes.
- Want to make sure I got all the supported attribute types correct.
In addition to these types, NumberRange, NumberSequence, and ColorSequence are supported.
This changes adds documentation for Rojo's "Attributes" type.
Some considerations:
Instance.AttributesSerialized
orInstance.Attributes
? As I understand, Rojo expectsAttributes
to be used as the property when specifying implicitly, but I'm not sure whether the example is meant to refer to the actual serialized property, or Rojo's representation.