AceLand Unity Packages
  • Home
  • Getting Started
    • Installation
    • Project Settings
    • Architecture Graph
    • Development Level
  • Tutorial
    • Create Your Package
    • Create Project Settings
  • Packages
    • Library
      • Change Log
      • Editor Tools
      • Mono
        • Follow Object
        • Singleton
      • Attributes
        • Conditional Show
        • Inspector Button
        • ReadOnly Field
      • Build Leveling
      • CVS
      • DataTools
      • Disposable Object
      • Extensions
      • Json
      • Kalman Filter
      • Optional
      • Project Setting
      • Serialization Surrogate
      • Utils
    • Event Driven
      • Change Log
      • Event Bus
      • Signal
    • Input
      • Change Log
    • Memento Service
      • Change Log
    • Node Framework
      • Change Log
      • Mono Node
    • Node For Mono (dev)
    • Player Loop Hack
      • Change Log
    • Pool
      • Change Log
    • Security (dev)
    • States
      • Change Log
    • Task Utils
      • Change Log
    • WebRequest
      • Change Log
Powered by GitBook
On this page
  1. Packages
  2. Library

Project Setting

A data model of project setting

Last updated 6 months ago

As project dependency (package) is a separate project for any other projects to rely on, setting should be separated by each project.

Unity Editor's Project Setting window is a place to handle settings of all dependencies. However there is almost no package developer using it. It is quiet complicated to build up and Unity do not force developers to build settings in this way.

This is a abstract class that your settings should inherit to.

public sealed class YourSettings : ProjectSettings<YourSettings>
{
    [SerializeField] private bool useSettings = true;
    
    public bool UseSettings => useSettings;
}

This will define an data model, but will not create or add to Project Setting window.

Please read about Settings Provider or our package that contains project setting.

You can also read our to learn our method.

official document
Tutorial - Create Project Settings