Skip to content

Bryan-000/ScenePatching

Repository files navigation

ScenePatching

A super simple library that allows you to extremely simply edit scenes and such via your mods, made for ULTRAKILL.
This is A LIBRARY it does not do anything by itself.

How to use the library

-- IMPORTANT --

It's super important to call this line anywhere in your mod ONCE before loading the game.
SceneModding.PatchAll()
so your patches actually work :3

Making a ScenePatch

Make a new static class/method and add the [ScenePatch] attribute to it
In the class make a new method with [ScenePatch("TARGET_SCENE")] and set target to the desired scene (Level 1-4, CreditsMuseum2, uk_construct, Endless, etc)

Example:
whar...

this will be ran on scene load, you can find objects and blah blah with the GameObject.FindObject extension or...

TargetObjects

The [ScenePatch] attribute also has a targetObject's parameter, using this u can add a GameObject or any other component(Transform, Door, Light, etc) parameter(s) to your method and the GameObject/a component off of the GameObject will be passed along.
uh oh why are u no work
You can also add multiple targetObject's and itll run the patch multiple times for all of them :3

UnityExtensions

oki so this isnt like the main part of the library but its coolio to me so :3
check out ScenePatching.UnityExtensions here, it itself has documentation in the file so :P

About

Provides a simple and easy way of editing scenes via your mods in ULTRAKILL.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages