GameObjectGetComponentsCompType Method |
Get all components by type / name.
Namespace:
GeonBit.ECS
Assembly:
GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public List<CompType> GetComponents<CompType>(
string name = null
)
where CompType : BaseComponent
Parameters
- name (Optional)
- Type: SystemString
If provided, will get components by type and name.
Type Parameters
- CompType
- Type of components to get.
Return Value
Type:
ListCompTypeList with components matching conditions.
See Also