0.0.5 • Published 2 years ago

com.kagekirin.unitygcprefresh v0.0.5

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

GCPRefresh for Unity

A Unity Editor extension to run gcloud auth every n minutes to refresh the ~/.upmconfig.toml with an updated GCP auth token.

Installation

Add the following registry to Unity's scoped registries, and this package to the dependencies.

{
  "scopedRegistries": [
    {
      "name": "npmjs",
      "url": "https://registry.npmjs.org",
      "scopes": [
        "com.kagekirin"
      ]
    }
  ],
  "dependencies": {
    "com.kagekirin.unitygcprefresh": "0.0.4"
  }

Setup

After installing GCPRefresh, you will need to set up the Google Cloud Artifact Registry for which to automatically refresh the auth token. The menu is under Project Settings / GCPRefresh.

Project Settings

Automatically refreshing the GCP auth token

You might have noticed the new entry GCP / Refresh GCP Token in the menu bar. This opens the window below:

GCPRefresh Window

Clicking on the Start button will directly refresh the token, and then enter a waiting phase depending on the refresh rate in the Project Settings.

Clicking on the Stop button will stop the automatic refreshing process.