Open Asterune
ComponentService

ComponentService

Retrieves registered ECS component definitions.

Service
game:GetService("ComponentService")
Inherits
Instance
Replication
Never

Behavior

ComponentService retrieves registered ECS component definitions.

Summary

Members3
Methods3

Methods

GetDefinition

ComponentService:GetDefinition(name: string): Component?

Returns the registered Component with the specified name, or nil if none exists.

GetDefinitions

ComponentService:GetDefinitions(): table

Returns the registered component definitions.

GetExecutionGroup

ComponentService:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Inherited members

Inherited47

Instance