diff --git a/docs/governance/templates/release_issue.md b/docs/governance/templates/release_issue.md index 30bfd7d967..62355a4113 100644 --- a/docs/governance/templates/release_issue.md +++ b/docs/governance/templates/release_issue.md @@ -38,6 +38,7 @@ and copy it into a release issue. Fill in relevant values, found inside {} - [ ] Update SDK Package Versions - [ ] Update the package version in [`sdks/nodejs/package.json`][package.json] and [`sdks/nodejs/package-lock.json`][package-lock.json] by running `npm version {version}` if a full release or `npm version {version}-rc` if release candidate - [ ] Ensure the [`sdks/csharp/sdk/AgonesSDK.nuspec` and `sdks/csharp/sdk/csharp-sdk.csproj`][csharp] versions are correct (should be {version} if a full release, {version}-rc if release candidate) + - [ ] Update the package version in the [`sdks/unity/package.json`][unity] package file's `Version` field to {version} if a full release, {version}-rc if release candidate - [ ] Run `make gen-install` - [ ] Run `make test-examples-on-gcr` to ensure all example images exist on gcr.io/agones-images- - [ ] Create a *draft* release with the [release template][release-template] @@ -80,6 +81,7 @@ and copy it into a release issue. Fill in relevant values, found inside {} - [ ] If full release move the [helm `Chart` version values][chart] is to {version}+1-dev - [ ] If full release, change to the `sdks/nodejs` directory and run the command `npm version {version}+1-dev` to update the package version - [ ] If full release move the [`sdks/csharp/sdk/AgonesSDK.nuspec` and `sdks/csharp/sdk/csharp-sdk.csproj`][csharp] to {version}+1-dev +- [ ] If full release update the [`sdks/unity/package.json`][unity] package file's `Version` field to {version}+1-dev - [ ] If full release, remove `feature-freeze-do-not-merge` labels from all pull requests - [ ] Run `make gen-install gen-api-docs` - [ ] Create PR with these changes, and merge them with approval diff --git a/sdks/unity/Agones.asmdef b/sdks/unity/Agones.asmdef new file mode 100644 index 0000000000..69efd6e9d9 --- /dev/null +++ b/sdks/unity/Agones.asmdef @@ -0,0 +1,3 @@ +{ + "name": "Agones" +} \ No newline at end of file diff --git a/sdks/unity/Agones.asmdef.meta b/sdks/unity/Agones.asmdef.meta new file mode 100644 index 0000000000..648f90e507 --- /dev/null +++ b/sdks/unity/Agones.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 842bf14b8e2ba45638e25dba28f03539 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/sdks/unity/AgonesSdk.cs.meta b/sdks/unity/AgonesSdk.cs.meta new file mode 100644 index 0000000000..553907ef5c --- /dev/null +++ b/sdks/unity/AgonesSdk.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b6741d5bd9b974d4c9054272525bdee5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/sdks/unity/model.meta b/sdks/unity/model.meta new file mode 100644 index 0000000000..d8dd99ded9 --- /dev/null +++ b/sdks/unity/model.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a51e28f6790a744cca4ff7f7551014b9 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/sdks/unity/model/GameServer.cs.meta b/sdks/unity/model/GameServer.cs.meta new file mode 100644 index 0000000000..1646ece2a1 --- /dev/null +++ b/sdks/unity/model/GameServer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d221c617908824401891233f0cb2fd12 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/sdks/unity/model/GameServerObjectMeta.cs.meta b/sdks/unity/model/GameServerObjectMeta.cs.meta new file mode 100644 index 0000000000..a26e89de9d --- /dev/null +++ b/sdks/unity/model/GameServerObjectMeta.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a1eaf0f8f3f40478186387a7795e765f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/sdks/unity/model/GameServerSpec.cs.meta b/sdks/unity/model/GameServerSpec.cs.meta new file mode 100644 index 0000000000..fac109e1f8 --- /dev/null +++ b/sdks/unity/model/GameServerSpec.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b06d5fb5e12a4432eb54084b319163a7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/sdks/unity/model/GameServerStatus.cs.meta b/sdks/unity/model/GameServerStatus.cs.meta new file mode 100644 index 0000000000..bc3c908793 --- /dev/null +++ b/sdks/unity/model/GameServerStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 71fba95d0288c47a8bca2f7cc4455df0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/sdks/unity/model/SpecHealth.cs.meta b/sdks/unity/model/SpecHealth.cs.meta new file mode 100644 index 0000000000..b2e9be2c84 --- /dev/null +++ b/sdks/unity/model/SpecHealth.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 440e595b400eb422fa23ef184dc80d48 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/sdks/unity/model/StatusPort.cs.meta b/sdks/unity/model/StatusPort.cs.meta new file mode 100644 index 0000000000..7d1a3963bf --- /dev/null +++ b/sdks/unity/model/StatusPort.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 33f4a78e60a1542d4a8d0829c31da0be +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/sdks/unity/package.json b/sdks/unity/package.json new file mode 100644 index 0000000000..d2d06e48b3 --- /dev/null +++ b/sdks/unity/package.json @@ -0,0 +1,11 @@ +{ + "name": "com.googleforgames.agones", + "version": "1.18.1", + "displayName": "Agones Unity SDK", + "description": "The Unity Gameserver SDK for Agones", + "unity": "2019.1", + "author": { + "name": "Google LLC", + "url": "https://github.com/googleforgames/agones" + } + } \ No newline at end of file diff --git a/sdks/unity/package.json.meta b/sdks/unity/package.json.meta new file mode 100644 index 0000000000..3e21206942 --- /dev/null +++ b/sdks/unity/package.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 359685a0481644cc6933145965863f63 +PackageManifestImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/sdks/unity/third_party.meta b/sdks/unity/third_party.meta new file mode 100644 index 0000000000..57470233be --- /dev/null +++ b/sdks/unity/third_party.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1876674546da5431c9a4b01387223668 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/sdks/unity/third_party/MiniJSON.cs.meta b/sdks/unity/third_party/MiniJSON.cs.meta new file mode 100644 index 0000000000..762946a860 --- /dev/null +++ b/sdks/unity/third_party/MiniJSON.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 55e93ec681563450aad7d600efba1185 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/site/content/en/docs/Guides/Client SDKs/unity.md b/site/content/en/docs/Guides/Client SDKs/unity.md index 1145002ab1..89d5c1af67 100644 --- a/site/content/en/docs/Guides/Client SDKs/unity.md +++ b/site/content/en/docs/Guides/Client SDKs/unity.md @@ -33,6 +33,25 @@ Additional methods have been added for ease of use: - Connect +{{% feature publishVersion="1.19.0" %}} +## Installation + +The client SDK code can be manually downloaded and added to your project hierarchy. + +It can also be imported into your project via the Unity Package Manager (UPM). To do that, open your project's `manifest.json` file, and add the following line to the dependencies section: + +``` +{ + "dependencies": { + "com.googleforgames.agones": "https://github.com/googleforgames/agones.git?path=/sdks/unity", +... +``` + +If you want a specific release, the dependency can be pinned to that version. For example: + +`"com.googleforgames.agones": "https://github.com/googleforgames/agones.git?path=/sdks/unity#1.19.0",` +{{% feature publishVersion="1.19.0" %}} + ## Download Download the source {{< ghlink href="sdks/unity" >}}directly from GitHub{{< /ghlink >}}.