Skip to content

Commit

Permalink
default snippets updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kleber-swf committed Feb 25, 2024
1 parent 453720f commit 97d57a3
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -752,13 +752,6 @@
"}"
]
},
"MonoBehaviour RequireComponent": {
"prefix": "RequireComponent",
"body": [
"[RequireComponent(typeof($0))]"
],
"description": "Automatically adds required components as dependencies."
},
"StateMachineBehaviour OnStateEnter": {
"prefix": "OnStateEnter",
"description": "Called on the first Update frame when a statemachine evaluate this state.",
Expand Down Expand Up @@ -940,13 +933,17 @@
"body": "Debug.DrawRay(Vector3 start$1, Vector3 dir$2, Color color = Color.white$3, float duration = 0.0f$4, bool depthTest = true$5);"
},
"Attribute: SerializeField": {
"prefix": [
"SerializeField",
"sf"
],
"prefix": "sfield",
"body": [
"[SerializeField] private $0;"
],
"description": "Force Unity to serialize a private field."
},
"MonoBehaviour RequireComponent": {
"prefix": "RequireComponent",
"body": [
"[RequireComponent(typeof($0))]"
],
"description": "Automatically adds required components as dependencies."
}
}

0 comments on commit 97d57a3

Please sign in to comment.