Scripting API

Scripting API

AddableComponent

Record struct in Abyss.Core, from Abyss.Core.

A component that could be added to an entity, as the Add Component list shows it.

public readonly record struct AddableComponent

Constructors

AddableComponent

public AddableComponent(string Name, string Module)

A component that could be added to an entity, as the Add Component list shows it.

Parameters

  • Name: The name that finds it again, which is what World.ComponentByName takes.
  • Module: The crate it comes from — bevy_light — or game for one declared from C#.

Properties

Name

public string Name { get; init; }

The name that finds it again, which is what World.ComponentByName takes.

Module

public string Module { get; init; }

The crate it comes from — bevy_light — or game for one declared from C#.