Scripting API
Scripting API
DataAssetAttribute
Class in Abyss.Core, from Abyss.Core.
Marks a struct as a kind of data asset, declared in a game's or a package's code: files of it, name.asset, made from the Project panel's Create menu under DataAssetAttribute.Menu, edited in the Inspector with its fields' rows, named by an AssetRef<T> field of a component, of settings or of another data asset, packed with the game and read with World.Data.
public sealed class DataAssetAttribute : AttributeRemarks
Plain values, as a component's are — numbers, enums, fixed lists, fixed text, masks of the layers, and references to other assets — what its fields' initializers say where a file says nothing of a field; a field renamed is found by FormerlySerializedAsAttribute.
Constructors
DataAssetAttribute
public DataAssetAttribute(string title)A kind of data asset called title, what Create offers and the Inspector heads it with.
Parameters
title: Its name:Physics Material 2D.
Properties
Title
public string Title { get; }Its name, which Create offers and the Inspector heads one with.
Menu
public string? Menu { get; init; }Where Create offers it, its parts joined by / — Physics 2D — or nothing for Create itself.
