Skip to content

Commit 95aeaaf

Browse files
committed
Use UnityEngine.Modules package, add template option to specify Unity version
1 parent 8a7ce22 commit 95aeaaf

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

BepInEx.Templates.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<PackageType>Template</PackageType>
5-
<PackageVersion>1.1.0</PackageVersion>
5+
<PackageVersion>1.2.0</PackageVersion>
66
<PackageId>BepInEx.Templates</PackageId>
77
<Title>BepInEx Plugin Templates</Title>
88
<Authors>BepInEx</Authors>

templates/BepInEx5.PluginTemplate/.template.config/template.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
"replaces": "My first plugin",
2727
"defaultValue": "My first plugin"
2828
},
29+
"UnityVersion": {
30+
"type": "parameter",
31+
"description": "Unity version to use when developing the plugin",
32+
"datatype": "text",
33+
"replaces": "5.6.0",
34+
"defaultValue": "5.6.0"
35+
},
2936
"Version": {
3037
"type": "parameter",
3138
"description": "Plugin version",

templates/BepInEx5.PluginTemplate/BepInEx5.PluginTemplate.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<PackageReference Include="BepInEx.Analyzers" Version="1.0.4" PrivateAssets="all" />
1414
<PackageReference Include="BepInEx.Core" Version="5.*" />
1515
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
16-
<PackageReference Include="UnityEngine" Version="5.6.1" IncludeAssets="compile" />
16+
<PackageReference Include="UnityEngine.Modules" Version="5.6.0" IncludeAssets="compile" />
1717
</ItemGroup>
1818

1919
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">

templates/BepInEx6.PluginTemplate.UnityMono/.template.config/template.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
"replaces": "My first plugin",
2727
"defaultValue": "My first plugin"
2828
},
29+
"UnityVersion": {
30+
"type": "parameter",
31+
"description": "Unity version to use when developing the plugin",
32+
"datatype": "text",
33+
"replaces": "5.6.0",
34+
"defaultValue": "5.6.0"
35+
},
2936
"Version": {
3037
"type": "parameter",
3138
"description": "Plugin version",

templates/BepInEx6.PluginTemplate.UnityMono/BepInEx6.PluginTemplate.UnityMono.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<PackageReference Include="BepInEx.Analyzers" Version="1.0.4" PrivateAssets="all" />
1414
<PackageReference Include="BepInEx.Unity" Version="6.0.0-*" IncludeAssets="compile" />
1515
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
16+
<PackageReference Include="UnityEngine.Modules" Version="5.6.0" IncludeAssets="compile" />
1617
</ItemGroup>
1718

1819
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">

0 commit comments

Comments
 (0)