Obenseuer/Modding

From Stalburg Wiki
Revision as of 21:40, 2 July 2024 by Nextej (talk | contribs)
Jump to navigation Jump to search

Custom Unity files for Obenseuer can be loaded using the OSLoader, created by Ierdna100. Additional modding library, the OSML created by BoettcherDasOriginal, is available for OSLoader.

Adding new furniture

Furnitures are made out of two prefabs, the furniture prefab and the preview prefab.

Furniture prefab

Rendered on user layer 12, named as Placeable.

Component structure:


Prefab (FurniturePlaceable.cs)
  -> rotate (empty object)
     -> Stuff (components, like the MeshRenderer, of the furniture)

Preview prefab

Rendered on user layer 11, named as ItemPreview.

Component structure:


Preview Prefab
  -> rotate (ObjectPreview.cs)
     -> Stuff + Collision (Rigidbody(kinematic), Box Collider(trigger), InsideTrigger.cs)