Skip to content

Commit 0d169f8

Browse files
committed
Create new aspect snippet
1 parent 427251f commit 0d169f8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

snippets.json

+15
Original file line numberDiff line numberDiff line change
@@ -301,5 +301,20 @@
301301
"}"
302302
],
303303
"description": "Create a Unity DOTS component baker referencing another data source (i.e. mesh, gameObject, scriptable obj...)"
304+
},
305+
"Dots Create Aspect": {
306+
"prefix": "dca",
307+
"body": [
308+
"using Unity.Entities;",
309+
"",
310+
"namespace ${1}",
311+
"{",
312+
"\treadonly partial struct ${2:$TM_FILENAME_BASE} : IAspect",
313+
"\t{",
314+
"\t\treadonly ${3|RefRW,RefRO|}<${4:Component}> ${4:ComponentName};${0}",
315+
"\t}",
316+
"}"
317+
],
318+
"description": "Create a Unity DOTS aspect (used to group related components)"
304319
}
305320
}

0 commit comments

Comments
 (0)