From 8ebe0baef30365ef02e629666d82ebc78c4212ea Mon Sep 17 00:00:00 2001 From: Wingy Date: Sat, 10 Aug 2024 14:42:43 -0400 Subject: [PATCH 1/2] Update docs to reflect #574 --- docs/properties.md | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/docs/properties.md b/docs/properties.md index fa5c7576..429a1938 100644 --- a/docs/properties.md +++ b/docs/properties.md @@ -11,7 +11,6 @@ Rojo supports most Roblox properties. This page documents all of the properties | Property Type | Example Property | Build | Live Sync | Project Files | |:----------------------------------------------------|:--------------------------------|:--:|:--:|:--:| -| [Attributes](#attributes) | `Instance.Attributes` | ✔ | ✔ | ✔ | | [Axes](#axes) | `ArcHandles.Axes` | ✔ | ✔ | ✔ | | [BinaryString](#binarystring) | `BinaryStringValue.Value` | ✔ | ❌ | ✔ | | [Bool](#bool) | `Part.Anchored` | ✔ | ✔ | ✔ | @@ -57,21 +56,13 @@ Many types have an **implicit** and **explicit** format. The [Project format pag ### Attributes Rojo defines the "Attributes" property on any instance to have the Attributes type, allowing it to be specified implicitly. -For both implicit and explicit values, the format is an object where each field represents an attribute, where the key is the name of the attribute, and the value must be an explicit value. +For both implicit and explicit values, the format is an object where each field represents an attribute, where the key is the name of the attribute, and the value is its value. ```json { - "$properties": { - "Attributes": { - "Foo": {"Bool": true}, - "Bar": {"Vector3": [1.0, 2.0, 3.0]}, - }, - "AttributesSerialized": { - "Attributes": { - "Foo": {"Bool": true}, - "Bar": {"Vector3": [1.0, 2.0, 3.0]}, - } - } + "$attributes": { + "Foo": {"Bool": true}, + "Bar": {"Vector3": [1.0, 2.0, 3.0]}, } } ``` From 909393f2874ae314e8d64287d409a37b50b915f3 Mon Sep 17 00:00:00 2001 From: Wingy Date: Sat, 10 Aug 2024 14:46:23 -0400 Subject: [PATCH 2/2] add back the Attributes row in the table --- docs/properties.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/properties.md b/docs/properties.md index 429a1938..e8a186dc 100644 --- a/docs/properties.md +++ b/docs/properties.md @@ -11,6 +11,7 @@ Rojo supports most Roblox properties. This page documents all of the properties | Property Type | Example Property | Build | Live Sync | Project Files | |:----------------------------------------------------|:--------------------------------|:--:|:--:|:--:| +| [Attributes](#attributes) | `Instance.Attributes` | ✔ | ✔ | ✔ | | [Axes](#axes) | `ArcHandles.Axes` | ✔ | ✔ | ✔ | | [BinaryString](#binarystring) | `BinaryStringValue.Value` | ✔ | ❌ | ✔ | | [Bool](#bool) | `Part.Anchored` | ✔ | ✔ | ✔ |