Obenseuer/Modding: Difference between revisions

From Stalburg Wiki
Jump to navigation Jump to search
Line 7: Line 7:
Rendered on user layer <code>12</code>, named as <code>Placeable</code>.
Rendered on user layer <code>12</code>, named as <code>Placeable</code>.


Component structure
Component structure:
  <code>
  <code>
  Prefab (FurniturePlaceable.cs)
  Prefab (FurniturePlaceable.cs)
Line 17: Line 17:
Rendered on user layer <code>11</code>, named as <code>ItemPreview</code>.
Rendered on user layer <code>11</code>, named as <code>ItemPreview</code>.


Component structure
Component structure:
  <code>
  <code>
  Preview Prefab
  Preview Prefab

Revision as of 16:24, 2 July 2024

Custom Unity files for Obenseuer can be loaded using the OSLoader, created by Ierdna100.

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)