Add your description here
Project description
unity-scene-repacker
When modding a unity game, you often want to Instantiate objects from a scene that isn't loaded.
One solution for this is to load all the scenes you're interested in at startup, copy the gameobjects somewhere and unload the scene.
This works, but is slow and memory intensive.
This project lets you read scenes from the distributed game, take only what you need, and package those objects into an AssetBundle that you can load at runtime.
Usage
monsters.json
{
"A6_S3_Tutorial_And_SecretBoss_Remake": [
"A6_S3/Room/Prefab/Enemy/StealthGameMonster_RunningHog (3)",
"A6_S3/Room/Prefab/Enemy_2/\u5f29\u83c1\u82f1"
],
"A0_S7_CaveReturned": [
"A0_S7/Room/StealthGameMonster_TutorialDummyNonAttack"
],
"AG_SG1": [
"AG_SG1/Room/Shield Crawler Spawner \u4e1f\u91d1\u96fb\u87f2"
],
...
}
uv run src/unity_scene_repacker/cli.py \
--preloads ninesols/bosses.json \
--output out/preloads.bundle \
--game-dir '~/.local/share/Steam/steamapps/common/Nine Sols/NineSols_Data/'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unity_scene_repacker-0.1.0.tar.gz.
File metadata
- Download URL: unity_scene_repacker-0.1.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cba833cb4a59d57c60fc9e5b41d2617d1c3aebb6aab8149871a7a84342b7dedd
|
|
| MD5 |
847aa76b80378a1cb7948ff43a9d3efc
|
|
| BLAKE2b-256 |
eb9ba0f21a7b534c20078bd66bd075ed50e496dccdffd08812a10a7ed9a1e7a2
|
File details
Details for the file unity_scene_repacker-0.1.0-py3-none-any.whl.
File metadata
- Download URL: unity_scene_repacker-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f625d151c12bb3328cf53d0989b217f97f24f808f98c51bd3a36d7d77340f23d
|
|
| MD5 |
9c2171037ea439992919c05445cbd664
|
|
| BLAKE2b-256 |
e99416812d087b1ef71c680b2c7c2ccb31d18facdc92875577588e19d90aebe3
|