diff --git a/Layers.md b/Layers.md index 66686ed..d32e878 100644 --- a/Layers.md +++ b/Layers.md @@ -21,7 +21,7 @@ In the same way a profile contains layers, a layer can also contain layers (chil #### Example: ```lua -local layer = Profile.GetLayerByName("Test layer 1"); +local layer = Profile.GetLayerByName("Test layer 1") print(layer.Name) ``` @@ -30,14 +30,14 @@ print(layer.Name) Returns all child layers within the layer #### Syntax: ```lua -table GetChildren( ); +table GetChildren( ) ``` #### Example: ```lua -local layer = Profile.GetLayerByName("Test layer 1"); -local children = layer.GetChildren(); +local layer = Profile.GetLayerByName("Test layer 1") +local children = layer.GetChildren() for childKey, childValue in pairs(children) do - print(childValue.Name) + print(childValue.Name) end ``` #### Result: @@ -51,12 +51,12 @@ Test child layer 2 If found, returns the first child layer with the given name. #### Syntax: ```lua -layer GetChildByName(string layerName); +layer GetChildByName(string layerName) ``` #### Example: ```lua local layer = Profile.GetLayerByName("Test layer 1"); -local child = layer.GetChildByName("Test child layer 1"); +local child = layer.GetChildByName("Test child layer 1") print(child.Name) ``` #### Result: