Component Class

Base class for all components - pure data containers. For logic, use Behavior or Systems.

public abstract class Component

Inheritance System.Object → Component

Derived
AnimatorComponent
BuoyancyZoneComponent
JointComponent
KinematicCharacterBody
PhysicsBodyComponent
TransformComponent
AIControllerComponent
AudioListenerComponent
AudioSourceComponent
PlayerControllerComponent
CameraFollowComponent
ParticleEmitterComponent
ShapeComponent
SpriteComponent

Properties
Entity The entity this component is attached to.
IsEnabled Whether this component is enabled. Checked by built-in systems (rendering, physics, collision, audio, AI, particles) to skip processing of individual components without removing them. Custom systems should check this property when processing components.
Methods
OnAdded() Called when the component is added to an entity.
OnRemoved() Called when the component is removed from an entity.