Skip to content

My Devpacks of all time

Index

Name Package Version
TrickleCharge Art com.tricklecharge.unity.art.core NPM Version
TrickleCharge DevArt com.tricklecharge.unity.art.devart NPM Version
TrickleCharge Attributes com.tricklecharge.unity.attributes NPM Version
TrickleCharge DingOS com.tricklecharge.unity.dingos NPM Version
TrickleCharge Drones com.tricklecharge.unity.drone NPM Version
TrickleCharge Math com.tricklecharge.unity.math NPM Version
TrickleCharge Physics com.tricklecharge.unity.physics NPM Version
TrickleCharge Vehicle Systems com.tricklecharge.unity.vehicles NPM Version

Usage

These packages are hosted on a private npm registry.

To use them, you need to add the TrickleCharge Registry to your Unity project's manifest.json file or via the Unity project settings:
Project SettingsPackage ManagerScoped Registries.

Scoped registry details:


Example manifest.json

{
    "dependencies": {
        "com.tricklecharge.unity.art.core": "0.0.1",
        "com.tricklecharge.unity.art.devart": "0.0.5",
        "com.tricklecharge.unity.attributes": "0.0.1",
        "com.tricklecharge.unity.dingos": "0.0.1",
        "com.tricklecharge.unity.drone": "0.0.2",
        "com.tricklecharge.unity.math": "0.0.3",
        "com.tricklecharge.unity.physics": "0.0.2",
        "com.tricklecharge.unity.vehicles": "0.0.1",
    },
    "scopedRegistries": [
    {
      "name": "TrickleCharge Registry",
      "url": "https://npm.tricklecharge.dev/",
      "scopes": [
        "com.tricklecharge"
      ]
    }
  ]
}

Add as local packages

You can also clone the repo and add the packages directly:

{
    "dependencies": {
        "com.tricklecharge.unity.art.core": "file:S:/Dev/unity-packages/Packages/com.tricklecharge.unity.art.core",
        "com.tricklecharge.unity.art.devart": "file:S:/Dev/unity-packages/Packages/com.tricklecharge.unity.art.devart",
        "com.tricklecharge.unity.attributes": "file:S:/Dev/unity-packages/Packages/com.tricklecharge.unity.attributes",
        "com.tricklecharge.unity.dingos": "file:S:/Dev/unity-packages/Packages/com.tricklecharge.unity.dingos",
        "com.tricklecharge.unity.drone": "file:S:/Dev/unity-packages/Packages/com.tricklecharge.unity.drone",
        "com.tricklecharge.unity.math": "file:S:/Dev/unity-packages/Packages/com.tricklecharge.unity.math",
        "com.tricklecharge.unity.physics": "file:S:/Dev/unity-packages/Packages/com.tricklecharge.unity.physics",
        "com.tricklecharge.unity.vehicles": "file:S:/Dev/unity-packages/Packages/com.tricklecharge.unity.vehicles"
    }
}

Authentication

The packages in this repository do not require authentication to access.

You can probably ignore this section.

If you are trying to access packages that require authentication, Unity's package manager (UPM) requires authentication details saved in your global .upmconfig.toml file.

Step 1: Get your Registry Token

  1. Navigate to the TrickleCharge Registry Dashboard.
  2. Click the Login button and select Login with GitHub.
  3. Once authenticated, click on the ⚙️ gear icon in the top right corner.
  4. Expand the npm section.
  5. Copy your generated Auth Token from the provided npm configuration snippet (Only the text within the quotes).

Example

npm config set //npm.tricklecharge.dev/:_authToken "xxxxxxxxxxx"

"xxxxxxxxxxx" is your auth token.


Step 2: Configure UPM

Automatic Scripts

Linux / macOS / WSL:

bash <(curl -sSL https://raw.githubusercontent.com/Trickle-Charge/packages-unity/main/scripts/configure-upm-auth.sh)

Windows (PowerShell):

irm https://raw.githubusercontent.com/Trickle-Charge/packages-unity/main/scripts/configure-upm-auth.ps1 | iex

Command Line

Copy and paste the command below into your terminal. It will prompt you for the token you copied in Step 1 and it into your configuration.

Linux / macOS / WSL:

printf "Enter your TrickleCharge Registry Token: " && read -r REGISTRY_TOKEN && \
cat <<EOF >> ~/.upmconfig.toml

[npmAuth."https://npm.tricklecharge.dev/"]
_authToken = "$REGISTRY_TOKEN"
alwaysAuth = true
EOF
echo -e "\nSetup complete! Configured ~/.upmconfig.toml"

Windows (PowerShell):

& {
    $Token = Read-Host "Enter your TrickleCharge Registry Token"
    $ConfigPath = Join-Path $Home ".upmconfig.toml"
    $ConfigLines = @(
        "`n"
        '[npmAuth."https://npm.tricklecharge.dev/"]'
        "_authToken = `"$Token`""
        "alwaysAuth = true"
    )

    Add-Content -Path $ConfigPath -Value $ConfigLines
    Write-Host "Setup complete! Configured $ConfigPath" -ForegroundColor Green
}


Manual Setup

Create / modify your .upmconfig.toml and add an entry.

[npmAuth."https://npm.tricklecharge.dev/"]
_authToken = "xxxxxxxxxxx"
alwaysAuth = true

.upmconfig.toml can be found at:

OS Path
Linux ~/.upmconfig.toml
Windows %USERPROFILE%\.upmconfig.toml