Skip to content

Commit 97d57a3

Browse files
committed
default snippets updated
1 parent 453720f commit 97d57a3

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

snippets/snippets.json

+8-11
Original file line numberDiff line numberDiff line change
@@ -752,13 +752,6 @@
752752
"}"
753753
]
754754
},
755-
"MonoBehaviour RequireComponent": {
756-
"prefix": "RequireComponent",
757-
"body": [
758-
"[RequireComponent(typeof($0))]"
759-
],
760-
"description": "Automatically adds required components as dependencies."
761-
},
762755
"StateMachineBehaviour OnStateEnter": {
763756
"prefix": "OnStateEnter",
764757
"description": "Called on the first Update frame when a statemachine evaluate this state.",
@@ -940,13 +933,17 @@
940933
"body": "Debug.DrawRay(Vector3 start$1, Vector3 dir$2, Color color = Color.white$3, float duration = 0.0f$4, bool depthTest = true$5);"
941934
},
942935
"Attribute: SerializeField": {
943-
"prefix": [
944-
"SerializeField",
945-
"sf"
946-
],
936+
"prefix": "sfield",
947937
"body": [
948938
"[SerializeField] private $0;"
949939
],
950940
"description": "Force Unity to serialize a private field."
941+
},
942+
"MonoBehaviour RequireComponent": {
943+
"prefix": "RequireComponent",
944+
"body": [
945+
"[RequireComponent(typeof($0))]"
946+
],
947+
"description": "Automatically adds required components as dependencies."
951948
}
952949
}

0 commit comments

Comments
 (0)