CryptikLemur.AssetBundleBuilder
1.4.0
See the version list below for details.
dotnet tool install --global CryptikLemur.AssetBundleBuilder --version 1.4.0
dotnet new tool-manifest
dotnet tool install --local CryptikLemur.AssetBundleBuilder --version 1.4.0
#tool dotnet:?package=CryptikLemur.AssetBundleBuilder&version=1.4.0
nuke :add-package CryptikLemur.AssetBundleBuilder --version 1.4.0
AssetBundleBuilder
Command line tool for building Unity asset bundles for RimWorld mods. No repository cloning or Unity project setup required.
Prerequisites
Automatic Unity Installation: On Windows and macOS, if Unity is not found, the tool will automatically prompt to download and install Unity Hub and the required Unity Editor version. On Linux, manual Unity Hub installation is required.
The tool will:
- Auto-detect Unity installations in standard locations
- Automatically install Unity Hub and Unity Editor if missing (Windows/macOS)
- Create temporary Unity projects automatically
- Handle all Unity project configuration
For manual installation, download Unity Hub from unity.com/download and install the required Unity version through it.
Installation
.NET Global Tool (Cross Platform)
# Install globally
dotnet tool install --global CryptikLemur.AssetBundleBuilder
# Use anywhere
assetbundlebuilder 2022.3.35f1 "/path/to/assets" "mybundle" "/path/to/output"
Manual Installation
Download the appropriate executable for your platform from the Releases Page:
Extract and run the executable directly. No installation required.
Quick Start
Basic Usage
# Auto find Unity and build asset bundles
assetbundlebuilder 2022.3.35f1 "/path/to/your/mod/assets" "mybundle" "/path/to/output/directory"
With Custom Bundle Name
# Specify a custom bundle name
assetbundlebuilder 2022.3.35f1 "/path/to/assets" "author.modname" "/path/to/output"
Specific Platform
# Build only for Windows
assetbundlebuilder 2022.3.35f1 "/path/to/assets" "mybundle" "/path/to/output" --target windows
How It Works
- Creates a temporary Unity project
- Finds Unity installations by version number across common paths
- Copies your assets and applies proper import settings
- Builds compressed asset bundles with platform specific optimizations
- Removes temporary files automatically
Supported Features
- Automatic Unity Installation: Downloads and installs Unity Hub and Unity Editor if missing (Windows/macOS)
- Unity Version Auto Discovery: Just specify the version (e.g.,
2022.3.35f1
) - Cross Platform: Windows, macOS, and Linux native executables
- Multiple Build Targets: Windows, macOS, Linux asset bundles
- Automatic Asset Import Settings: Textures, audio, shaders
- Terrain Texture Support: Special handling for terrain assets
- PSD File Support: Basic Photoshop document import
- Temporary Project Management: No manual Unity project required
- CI/CD Friendly: Works in automated build pipelines
Command Reference
assetbundlebuilder <unity-path-or-version> <asset-directory> <bundle-name> [output-directory] [options]
Arguments
- unity-path-or-version: Either Unity version (e.g.,
2022.3.35f1
) or full path to Unity executable - asset-directory: Directory containing your mod's assets (textures, sounds, etc.)
- bundle-name: Name for the asset bundle (e.g., "mymod", "author.modname")
- output-directory: Where to create the asset bundles (optional, defaults to current directory)
Options
--unity-version <version>
: Explicitly specify Unity version--bundle-name <name>
: Override bundle name (alternative to positional argument)--target <target>
: Build target:windows
,mac
, orlinux
(default:windows
)--temp-project <path>
: Custom location for temporary Unity project--clean-temp
: Delete temporary project after build (default: keep for caching)
Examples
Windows
# Using .NET global tool
assetbundlebuilder 2022.3.35f1 "C:\MyMod\Assets" "mymod" "C:\MyMod\Output"
# Using specific Unity installation
assetbundlebuilder "C:\Unity\2022.3.35f1\Editor\Unity.exe" "C:\MyMod\Assets" "mymod" "C:\MyMod\Output"
macOS
# Using .NET global tool
assetbundlebuilder 2022.3.35f1 "/Users/me/MyMod/Assets" "mymod" "/Users/me/MyMod/Output"
# Using specific Unity installation
assetbundlebuilder "/Applications/Unity/Hub/Editor/2022.3.35f1/Unity.app/Contents/MacOS/Unity" "/Users/me/MyMod/Assets" "mymod" "/Users/me/MyMod/Output"
Linux
# Using .NET Global Tool
assetbundlebuilder 2022.3.35f1 "/home/user/MyMod/Assets" "mymod" "/home/user/MyMod/Output"
# Build only Linux bundles
assetbundlebuilder 2022.3.35f1 "/home/user/MyMod/Assets" "mymod" "/home/user/MyMod/Output" --target linux
Unity Installation Paths
The tool automatically searches these common Unity installation locations:
Windows
C:\Program Files\Unity\Hub\Editor\
C:\Program Files (x86)\Unity\Hub\Editor\
%USERPROFILE%\Unity\Hub\Editor\
macOS
/Applications/Unity/Hub/Editor/
$HOME/Applications/Unity/Hub/Editor/
Linux
/opt/unity/editor/
$HOME/Unity/Hub/Editor/
$HOME/.local/share/Unity/Hub/Editor/
CI/CD Integration
GitHub Actions
- name: Install AssetBundleBuilder
run: dotnet tool install --global CryptikLemur.AssetBundleBuilder
- uses: buildalon/unity-setup@v1
with:
unity-version: 2022.3.35f1
build-targets: StandaloneWindows64 StandaloneOSX StandaloneLinux64
modules: windows-mono mac-mono linux-il2cpp
- uses: buildalon/activate-unity-license@v1
with:
license: 'Personal'
username: ${{ secrets.UNITY_EMAIL }}
password: ${{ secrets.UNITY_PASSWORD }}
- name: Build AssetBundles for Windows
run: |
assetbundlebuilder 2022.3.35f1 "./Assets" "mymod" "./Output" --target windows
assetbundlebuilder 2022.3.35f1 "./Assets" "mymod" "./Output" --target linux
assetbundlebuilder 2022.3.35f1 "./Assets" "mymod" "./Output" --target mac
Troubleshooting
Unity Not Found
# Try with full path instead
assetbundlebuilder "/path/to/Unity" "/path/to/assets" "/path/to/output"
# Or install Unity in standard location
Permission Errors (Linux/macOS)
# Make sure executable has proper permissions
chmod +x ./AssetBundleBuilder
# Or use .NET Global Tool instead
dotnet tool install --global AssetBundleBuilder.GlobalTool
Invalid Bundle Name
# Use a valid bundle name (alphanumeric, dots, underscores)
assetbundlebuilder 2022.3.35f1 "/path/to/assets" "valid_bundle_name" "/path/to/output"
Caching and Performance
# Default behavior: temp project is cached for faster rebuilds
assetbundlebuilder 2022.3.35f1 "/path/to/assets" "mybundle" "/path/to/output"
# Force clean build by deleting temp project after build
assetbundlebuilder 2022.3.35f1 "/path/to/assets" "mybundle" "/path/to/output" --clean-temp
Uninstallation
.NET Global Tool
dotnet tool uninstall --global CryptikLemur.AssetBundleBuilder
Support
- Issues: GitHub Issues
- RimWorld Modding: RimWorld Discord
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
Version | Downloads | Last Updated |
---|---|---|
4.0.1 | 60 | 9/7/2025 |
4.0.0 | 132 | 9/1/2025 |
3.0.0 | 178 | 8/28/2025 |
2.0.0 | 177 | 8/28/2025 |
1.6.0 | 126 | 8/19/2025 |
1.5.0 | 130 | 8/18/2025 |
1.4.0 | 150 | 8/17/2025 |
1.3.0 | 94 | 8/15/2025 |
1.2.0 | 135 | 8/13/2025 |
1.1.0 | 141 | 8/13/2025 |
1.0.3 | 153 | 8/12/2025 |
1.0.2 | 138 | 8/12/2025 |
1.0.1 | 143 | 8/12/2025 |
1.0.0 | 129 | 8/12/2025 |
Initial release with Unity version auto-discovery and cross-platform support.