Skip to content

Commit

Permalink
Create new aspect snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtonland committed Jul 31, 2023
1 parent 427251f commit 0d169f8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,5 +301,20 @@
"}"
],
"description": "Create a Unity DOTS component baker referencing another data source (i.e. mesh, gameObject, scriptable obj...)"
},
"Dots Create Aspect": {
"prefix": "dca",
"body": [
"using Unity.Entities;",
"",
"namespace ${1}",
"{",
"\treadonly partial struct ${2:$TM_FILENAME_BASE} : IAspect",
"\t{",
"\t\treadonly ${3|RefRW,RefRO|}<${4:Component}> ${4:ComponentName};${0}",
"\t}",
"}"
],
"description": "Create a Unity DOTS aspect (used to group related components)"
}
}

0 comments on commit 0d169f8

Please sign in to comment.