Skip to content

Commit 788e30e

Browse files
authored
Update readme file.
1 parent 0be0e23 commit 788e30e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ partial class CustomVisualElement
105105
public new class UxmlTraits : global::UnityEngine.UIElements.VisualElement.UxmlTraits
106106
{
107107
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("UnityUxmlGenerator", "1.0.0.0")]
108-
private readonly global::UnityEngine.UIElements.UxmlStringAttributeDescription customAttribute = new()
108+
private readonly global::UnityEngine.UIElements.UxmlStringAttributeDescription _customAttribute = new()
109109
{ name = "custom-attribute", defaultValue = "" };
110110

111111
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("UnityUxmlGenerator", "1.0.0.0")]
112-
private readonly global::UnityEngine.UIElements.UxmlStringAttributeDescription customAttributeWithDefaultValue = new()
112+
private readonly global::UnityEngine.UIElements.UxmlStringAttributeDescription _customAttributeWithDefaultValue = new()
113113
{ name = "custom-attribute-with-default-value", defaultValue = "DefaultValue" };
114114

115115
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("UnityUxmlGenerator", "1.0.0.0")]
@@ -121,8 +121,8 @@ partial class CustomVisualElement
121121
base.Init(visualElement, bag, context);
122122

123123
var control = (CustomVisualElement) visualElement;
124-
control.CustomAttribute = customAttribute.GetValueFromBag(bag, context);
125-
control.CustomAttributeWithDefaultValue = customAttributeWithDefaultValue.GetValueFromBag(bag, context);
124+
control.CustomAttribute = _customAttribute.GetValueFromBag(bag, context);
125+
control.CustomAttributeWithDefaultValue = _customAttributeWithDefaultValue.GetValueFromBag(bag, context);
126126
}
127127
}
128128
}

0 commit comments

Comments
 (0)