Version: Unity 7.0 Alpha (7000.0)
Language : English
Programming with the Asset Database
Introduction to preset assets

Reusing settings with preset assets

Presets are assets that you can use to save and apply identical property settings across multiple components, assets, or Project Settings windows. You can also use presets to specify default settings for new components and default import settings.

You can only apply Presets in the Editor. Presets have no effect at runtime. You can use scripting to support presets in your own MonoBehaviour, ScriptableObject or ScriptedImporter classes.

Topic Description
Introduction to preset assets Use preset assets to reuse configurations and settings throughout your project.
Create presets assets Save the property configuration of a component, asset, or Project Settings window.
Apply preset assets Apply the configurations of a preset asset to a component, asset, or project setting.
Set default preset assets Set default preset assets to apply to every component or importer of a specific type every time you create one.
Apply default presets to assets by folder Apply default presets based on the location of an asset.
Add preset support to custom types Add preset support for your own custom C# types.

Additional resources

Programming with the Asset Database
Introduction to preset assets
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961