Systems
WebsiteGitHubGitBook
  • πŸ•ΉοΈSystems Intro
    • Game Controls
    • User Interface
    • Item Sprite Generation
  • πŸ“¦Asset Data
    • How Asset Data works
    • Using Asset Data
    • Creating an Asset Database
    • Known Issues
  • πŸ“‘Traits
    • Containers & Items
    • Roles
  • πŸ”«Gamemodes
    • Adding objectives
    • Adding game modes
  • πŸŽ₯Roles
    • Adding a new role
    • Adding a new permission
  • πŸ–οΈInteractions
    • Interactions Guide
  • 🧰Containers
    • Using containers in game
    • Setting up a container
      • Fields description
      • Networking a container
      • Custom storage conditions
    • FAQ
  • πŸ‘œInventories
    • Developer Guide
  • πŸ—ΊοΈTilemaps
    • Creating Maps
    • Adding new items & objects
      • Adjacency Connections
    • Technical Implementation
    • Refactor notes
    • Interface
  • πŸ’Entities
    • 🩲Character Customization
  • πŸ›‹οΈLobby
  • πŸ› οΈCrafting
  • πŸ’¬Chat
    • Channels
      • Department specific channels
      • Distance based channels
  • πŸ“£Audios
  • πŸ”ŽExamine
    • How it works
    • Setting up a game object to be examinable
Powered by GitBook
On this page
  • Creating ScriptableObjects
  • Location
  • Details

Was this helpful?

Edit on GitHub
Export as PDF
  1. Tilemaps

Adding new items & objects

PreviousCreating MapsNextAdjacency Connections

Last updated 1 year ago

Was this helpful?

Creating ScriptableObjects

To add a new item or object to the tilemap system, a new scriptableobject needs to be created.

Location

Make sure to save the item/tile ScriptableObjects under the corresponding "Content/Data/TileMap/Resources/" folder

Details

The following information can be filled in for a TileObjectSo:

Tile objects

  • Name String - describes the name of the object

  • Prefab - which prefab to spawn

  • Icon - Icon which is used by the creator and construction interface

  • Layer - which layer the item should be put in

  • Generic Type - Generics types are used to categorize objects on the same layer. Used by the adjacency connector to connect walls for example

  • Specific Type - Specific types are used to specify the material that the object is made of. For example used by carpets to ensure that they don't connect to other floors

  • Width - width of the object. Used for multi-tile objects

  • Height - height of the object. Used for multi-tile objects

Items

Items can be added in a similar way:

Make sure the Name String is unique. Not doing so will create issues during loading & saving.

πŸ—ΊοΈ
Right click in the Unity Editor to create a new object
Details to fill in
Items follow the same approach