Scripting API

Scripting API

DataAssetType

Record in Abyss.Core, from Abyss.Core.

A kind of data asset declared in code, described for an editor to make and show; see World.DataAssetTypes.

public record DataAssetType

Constructors

DataAssetType

public DataAssetType(string Title, string Menu, string Name, IReadOnlyList<ComponentField> Fields, IReadOnlyList<FieldHint> Hints, byte[] Start)

A kind of data asset declared in code, described for an editor to make and show; see World.DataAssetTypes.

Parameters

  • Title: Its name, which Create offers and the Inspector heads one with.
  • Menu: Where Create offers it, its parts joined by /; empty for Create itself.
  • Name: The struct's full name, which a file names it by and its component is registered by.
  • Fields: Its fields, as its layout has them.
  • Hints: What its fields' attributes say of showing them.
  • Start: The bytes one starts as: its fields' initializers.

Properties

Title

public string Title { get; init; }

Its name, which Create offers and the Inspector heads one with.

public string Menu { get; init; }

Where Create offers it, its parts joined by /; empty for Create itself.

Name

public string Name { get; init; }

The struct's full name, which a file names it by and its component is registered by.

Fields

public IReadOnlyList<ComponentField> Fields { get; init; }

Its fields, as its layout has them.

Hints

public IReadOnlyList<FieldHint> Hints { get; init; }

What its fields' attributes say of showing them.

Start

public byte[] Start { get; init; }

The bytes one starts as: its fields' initializers.

public string MenuPath { get; }

Where Create offers it, its title last: Physics 2D/Physics Material 2D.