From 0d169f82f4f8d8e26787a17a5c5b334a14dcd8b4 Mon Sep 17 00:00:00 2001 From: Ashton Date: Mon, 31 Jul 2023 17:33:51 -0400 Subject: [PATCH] Create new aspect snippet --- snippets.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/snippets.json b/snippets.json index 4353711..36b4416 100644 --- a/snippets.json +++ b/snippets.json @@ -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)" } } \ No newline at end of file