Table of Contents

Class EntityComponent

Namespace
Stride.Engine
Assembly
Stride.Engine.dll

Base class for Entity components.

[DataSerializer(typeof(EntityComponent.Serializer))]
[DataContract(Inherited = true)]
[ComponentCategory("Miscellaneous")]
public abstract class EntityComponent : IIdentifiable
Inheritance
EntityComponent
Implements
Derived

Properties

EnsureEntity

Gets the entity and throws an exception if the entity is null.

protected Entity EnsureEntity { get; }

Property Value

Entity

The entity.

Exceptions

InvalidOperationException

Entity on this instance is null

Entity

Gets or sets the owner entity.

public Entity Entity { get; }

Property Value

Entity

The owner entity.

Id

The unique identifier of this component.

[DataMember(-2147483648)]
[Display(null, null, Browsable = false)]
public Guid Id { get; set; }

Property Value

Guid