Skip to content

Game.EditorTutorial

Assembly:
Assembly-CSharp.dll (the game/mod assembly where this type is defined)
Namespace: Game.Tutorials

Type:
struct

Base:
IComponentData, IQueryTypeParameter

Summary:
EditorTutorial is an empty/tag ECS component (value type) used to mark or identify entities that participate in editor/tutorial-related logic. It is decorated with [StructLayout(LayoutKind.Sequential, Size = 1)] to force a 1-byte size for the struct (i.e., no stored fields but not a zero-sized type). The struct implements IComponentData so it can be attached to entities and IQueryTypeParameter to be usable in EntityQuery/query-building patterns.


Fields

  • This struct declares no fields.
    No instance data is stored — the type functions as a tag component.

Properties

  • This type declares no properties.
    Being an empty component, it carries only type identity.

Constructors

  • public EditorTutorial()
    As a value type, it has the implicit default constructor that initializes the single-byte backing storage to zero. No custom constructors are defined.

Methods

  • This type declares no methods.
    It only implements marker interfaces (IComponentData and IQueryTypeParameter) and provides no behavior itself.

Usage Example

// Tagging an entity with the EditorTutorial component
Entity e = EntityManager.CreateEntity();
EntityManager.AddComponent<EditorTutorial>(e);

// Querying entities that have the tag
Entities
    .WithAll<EditorTutorial>()
    .ForEach((Entity entity) =>
    {
        // handle tutorial/editor-related logic for the entity
    })
    .Schedule();