EntityComponent Class
Namespace: Stride.EngineAssembly: Stride.Engine.dll
Base class for Entity components.
System.Object →
EntityComponent
Derived from EntityComponent: ActivableEntityComponent AnimationComponent LightProbeComponent ModelNodeLinkComponent ScriptComponent TransformComponent UIElementLinkComponent NavigationBoundingBoxComponent NavigationComponent
[DataSerializer(typeof(EntityComponent.Serializer))]
[DataContract(Inherited = true)]
[ComponentCategory("Miscellaneous")]
public abstract class EntityComponent : IIdentifiable
Name | Description | |
---|---|---|
Properties | ||
EnsureEntity | Gets the entity and throws an exception if the entity is null. |
|
Entity | Gets or sets the owner entity. |
|
Id | The unique identifier of this component. |
Properties
EnsureEntity
Gets the entity and throws an exception if the entity is null.
protected Entity EnsureEntity { get; }
Property Value
Type | Description |
---|---|
Entity | The entity. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Entity on this instance is null |
Entity
Gets or sets the owner entity.
public Entity Entity { get; }
Property Value
Type | Description |
---|---|
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
Type | Description |
---|---|
System.Guid |