Skip to content

Commit ad81d4c

Browse files
committed
Changed: Simplier ScriptableObject snippet
1 parent f98a6f9 commit ad81d4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

snippets/snippets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"body": [
4242
"using UnityEngine;",
4343
"",
44-
"[CreateAssetMenu(fileName = \"${1:${TM_FILENAME_BASE}}\", menuName = \"${2:${TM_FILEPATH/.*\\\\(.*)\\\\Assets\\\\.*/${1}/}/${TM_FILENAME_BASE}}\", order = ${3:0})]",
44+
"[CreateAssetMenu(fileName = \"${1:${TM_FILENAME_BASE}}\", menuName = \"${2:${TM_FILENAME_BASE}}\", order = ${3:0})]",
4545
"public class ${TM_FILENAME_BASE} : ScriptableObject {",
4646
"\t$0",
4747
"}"

templates/classes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"body": [
4545
"using UnityEngine;",
4646
"",
47-
"[CreateAssetMenu(fileName = \"${1:${TM_FILENAME_BASE}}\", menuName = \"${2:${TM_FILEPATH/.*\\\\(.*)\\\\Assets\\\\.*/${1}/}/${TM_FILENAME_BASE}}\", order = ${3:0})]",
47+
"[CreateAssetMenu(fileName = \"${1:${TM_FILENAME_BASE}}\", menuName = \"${2:${TM_FILENAME_BASE}}\", order = ${3:0})]",
4848
"public class ${TM_FILENAME_BASE} : ScriptableObject%LINE_BREAK%{",
4949
"\t$0",
5050
"}"

0 commit comments

Comments
 (0)