Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unity_scene_repacker-0.1.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unity_scene_repacker-0.1.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file unity_scene_repacker-0.1.0.tar.gz.

File metadata

File hashes

Hashes for unity_scene_repacker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cba833cb4a59d57c60fc9e5b41d2617d1c3aebb6aab8149871a7a84342b7dedd
MD5 847aa76b80378a1cb7948ff43a9d3efc
BLAKE2b-256 eb9ba0f21a7b534c20078bd66bd075ed50e496dccdffd08812a10a7ed9a1e7a2

See more details on using hashes here.

File details

Details for the file unity_scene_repacker-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for unity_scene_repacker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f625d151c12bb3328cf53d0989b217f97f24f808f98c51bd3a36d7d77340f23d
MD5 9c2171037ea439992919c05445cbd664
BLAKE2b-256 e99416812d087b1ef71c680b2c7c2ccb31d18facdc92875577588e19d90aebe3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page