ComponentService
Retrieves registered ECS component definitions.
- Service
game:GetService("ComponentService")- Inherits
- Instance
- Replication
- Never
Behavior
ComponentService retrieves registered ECS component definitions.
Summary
Members3
Methods3
Returns the registered Component with the specified name, or nil if none exists.
Returns the registered component definitions.
Returns this instance if it is an ExecutionGroup.
Methods
GetDefinition
ComponentService:GetDefinition(name: string): Component?Returns the registered Component with the specified name, or nil if none exists.
GetDefinitions
ComponentService:GetDefinitions(): tableReturns 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
Instance47
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying